quickstart
Initialize a run.
Use the request shape below, point it at the c0de base URL, then send browser, terminal, repo, and deploy work in one run.
const run = await fetch("https://api.c0de.network/v1/execute", {
method: "POST",
headers: {
"content-type": "application/json",
"x-api-key": process.env.C0DE_KEY
},
body: JSON.stringify({
route: "c0de-agent-1",
input: "build a landing page and deploy preview",
tools: ["browser", "terminal", "repo", "deploy"]
})
}).then((r) => r.json());
builder
Prompt-to-production pipeline.
- brief - parse product request, stack, pages, copy, and asset direction.
- workspace - isolate repo, install deps, generate files, and run checks.
- preview - launch browser QA, capture screenshots, patch obvious misses.
- artifact - return bundle, diff, logs, screenshots, and deploy URL.
workers
Browser and terminal workers.
Workers are disposable execution lanes with browser state, shell access, filesystem, and logs. Public docs expose the narrative; private devnet exposes the actual queue.
browser qaterminal runsrepo diffsdeploy checks
router
Model routing.
Route tasks by latency, price, context length, tool reliability, and output quality. Fallbacks keep long agent runs moving when a model stalls.
router.policy = {
fast: ["small-code", "local-coder"],
deep: ["frontier-reasoner", "open-weight-large"],
fallback: "c0de-safe-route"
};
keys
Devnet keys.
Keys use the c0d_ prefix and map to access tiers. Public docs preview; key issuance opens later.
access
Access tiers.
- builder - public route, limited workers.
- operator - private logs, deploy previews, early model routes.
- founder - custom endpoints, partner drops, priority queue.