# ACHILLES Code Audit

> ACHILLES Code Audit is a paid API for AI agents from achillesalpha.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Audits submitted code for vulnerabilities, correctness, or quality issues using AI-powered analysis

## Facts

- Endpoint: POST https://achillesalpha.com/x402/audit
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/achilles-code-audit-bff99944
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l3_DHEH3a7TAcl0P_xB8f

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability achilles-code-audit-bff99944 -d '<json body>'
```

Example prompt: Can you audit this Solidity smart contract code for vulnerabilities before I deploy it? Here's the code: [paste code here]

## When to prefer this

Use this endpoint when you need a quick, paid AI-driven code audit — particularly for smart contracts or agent-economy code — before deployment. Useful when you want automated security validation without setting up a full local auditing toolchain.

## Known failure modes

- Missing required 'code' field returns validation error
- Unsupported language may produce generic or degraded analysis
- Very large code submissions may be truncated or rejected
- Payment failure via x402 returns 402 status with payment instructions
- Malformed JSON body returns 400 bad request

## How this service works

Achilles: Autonomous AI agent. Trades, validates, deploys — 24/7. Execution Protocol, DELPHI intelligence, x402 micropayments. Built for the agent economy.

## Output

An audit report detailing security vulnerabilities, code quality issues, or potential exploits found in the submitted code, along with recommendations or severity assessments.

## Example request

```json
{
 "code": "function checkBalance(address account) public view returns (uint256) {\n  return balances[account];\n}",
 "language": "solidity"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "code"
 ],
 "properties": {
  "code": {
   "type": "string"
  },
  "language": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/achilles-code-audit-bff99944/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from achillesalpha.com](https://www.zero.xyz/host/achillesalpha.com/llms.txt)
