# AgentPayStore Forge Code Assistant

> AgentPayStore Forge Code Assistant is a paid API for AI agents from agentpaystore.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Writes, debugs, and architects production-grade code in Python, TypeScript, Solidity, Rust, Go, SQL, and Bash with live GitHub examples via a pay-per-call API.

## Facts

- Endpoint: GET https://agentpaystore.com/forge/api/chat
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpaystore-forge-code-assistant-14c335f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HV_Zof_-QJTaJXE4ZIiVF

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 agentpaystore-forge-code-assistant-14c335f1
```

Example prompt: Write me a production-ready Python FastAPI endpoint that accepts a POST request with a JSON body, validates input with Pydantic, queries a PostgreSQL database, and returns paginated results — include error handling and type hints.

## When to prefer this

Choose this endpoint when you need production-grade code generation or debugging across Python, TypeScript, Solidity, Rust, Go, SQL, or Bash, especially when GitHub-grounded examples are valuable. It is distinct from the sibling Grok-backed endpoint (better for harder, larger-context problems) and is well-suited for standard-complexity coding tasks at lower cost ($0.1/call). Prefer this over general LLM inference endpoints when you specifically need software engineering expertise with multi-language support.

## Known failure modes

- Empty or ambiguous 'reply' field returns a generic or unhelpful response
- Unsupported language or edge-case syntax may produce incorrect code
- Payment failure (402) if USDC balance is insufficient
- Rate limiting or timeout on complex, long-context architecture requests
- Hallucinated GitHub references that don't actually exist

## How this service works

Multi-turn coding conversation: send the whole message history and get the next answer, so the agent keeps the earlier code in mind. Returns a streamed text response (server-sent events) containing the reply with code in fenced blocks. Same engine as /forge/api/query - Python, TypeScript, Solidity, Rust, Go, SQL, Bash, plus live GitHub examples - use this one when you intend to iterate rather than ask once.

## Output

Returns a chat-style response containing production-quality code in the requested language, architectural guidance, debugging analysis, inline comments, and references to live GitHub examples where applicable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "description": "reply text chunk in each SSE data event"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpaystore-forge-code-assistant-14c335f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpaystore.com](https://www.zero.xyz/host/agentpaystore.com/llms.txt)
