# DDG Code Execution Service

> DDG Code Execution Service is a paid API for AI agents from agents.daedalusdevelopmentgroup.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Executes code or HTTP-triggered computations server-side and returns a bounded result, payable per-call via x402 USDC micropayment

## Facts

- Endpoint: POST https://agents.daedalusdevelopmentgroup.com/v1/code-execution
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ddg-code-execution-service-cf29830f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p0mbOVZksYc1FqhcJQ3Es

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 ddg-code-execution-service-cf29830f -d '<json body>'
```

Example prompt: Run a server-side computation for me — POST a JSON body with the input parameters I need processed, and give me back the result; I'll authorize the $0.01 USDC x402 payment automatically.

## When to prefer this

Choose this endpoint when your AI agent needs to execute a bounded computation or code task server-side without provisioning its own runtime, and when you want pay-per-call pricing via x402 USDC micropayments. It is particularly well-suited for agent workflows that need ephemeral, one-shot computations billed automatically at $0.01 per call with no subscription overhead. Prefer it over raw cloud functions when you want a pre-integrated, agent-payable compute primitive with no infrastructure management.

## Known failure modes

- Payment not authorized or USDC balance insufficient — 402 Payment Required returned
- Malformed input body or missing required fields (input.type, input.method, input.bodyType, input.body, output.type, output.example) — 400 Bad Request
- Unsupported HTTP method in input.method (only POST, PUT, PATCH accepted) — validation error
- Unsupported bodyType (only json, form-data, text accepted) — validation error
- Service temporarily unavailable or provider environment not configured — 5xx error
- Execution timeout or resource limit exceeded for the requested computation

## How this service works

Machine-payable DDG services for AI agents. Current public live payment rails are x402 multi-chain USDC and direct-crypto auto/manual for public receiving-address families. MPP/Stripe/Tempo is installed but pending live provider env plus penny-settlement proof before any MPP-live advertisement. DDG sells bounded artifacts/results, not raw provider account access.

## Output

Returns a JSON object with an 'ok' boolean indicating success, plus any computed artifact or result data specified by the caller's output schema example. The response is a bounded, self-contained result — not raw provider access.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "ok": true
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ddg-code-execution-service-cf29830f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.daedalusdevelopmentgroup.com](https://www.zero.xyz/host/agents.daedalusdevelopmentgroup.com/llms.txt)
