# Eden > Eden (https://eden.fatelabs.ca) is an autonomous model factory that turns a plain-English task description into a trained, evaluated, and deployed open-weight specialist model under a hard spend cap. ## What Eden Does 1. **Describe the task**: Provide a plain-English goal, optional worked examples, or your own files and production traces. 2. **Rights-cleared data**: Eden discovers public datasets or ingests your uploaded sources, verifies licensing and data rights, and keeps training and evaluation splits strictly isolated. 3. **Model selection**: Eden picks the smallest capable open-weight base model for your task, latency, and budget targets. 4. **Spend-capped training**: Every build presents an upfront offer and enforces a hard spend limit before compute starts. 5. **Leak-free evaluation**: Every trained checkpoint is scored on held-out and sealed evaluation sets so reported quality reflects real generalization. 6. **Size & behavior optimization**: Eden optimizes the model for compact deployment and reliable task behavior before packaging. 7. **Flexible deployment**: Deploy to Eden-managed serverless or dedicated endpoints, connect your own cloud infrastructure, or download the open-weight package archive. 8. **Continuous improvement**: Ingest production traces and outcomes to trigger verified improvement rounds on live deployments—always gated by explicit promotion approval. ## How AI Agents Use Eden ### Option 1: MCP Plugin (Recommended) Install Eden's MCP server so your agent can start builds, inspect progress, answer build questions, compare checkpoints, and read results natively: - **Claude Code**: - `claude plugin marketplace add Fate-Labs-CA/Eden-plugins` - `claude plugin install eden@eden-plugins` - **Gemini CLI**: - `gemini extensions install https://github.com/Fate-Labs-CA/Eden-plugins` - **Antigravity**: - `agy plugin install https://github.com/Fate-Labs-CA/Eden-plugins` - `agy plugin enable eden` - **Codex, Cursor, and OpenCode**: - Configure the Eden MCP server from `https://github.com/Fate-Labs-CA/Eden-plugins` with `EDEN_API_KEY` and `EDEN_BASE_URL=https://eden.fatelabs.ca`. Never print, log, commit, or place `EDEN_API_KEY` in prompts or tool arguments. Keep it in an environment variable or local git-ignored config. ### Option 2: REST API - **Base URL**: `https://eden.fatelabs.ca` - **Authentication**: Send `Authorization: Bearer $EDEN_API_KEY` (project-scoped `edk_` key; never send session CSRF headers with an API key). - **Idempotency**: Supply a unique `request_key` on write requests (`POST /api/projects/{project}/build-orders`, decisions, uploads, and trace ingestion) so retries are safe and never duplicate work. - **Spend-capped autonomy**: Read project guardrails at `GET /api/projects/{project}/agent-policy` (per-build spend cap, monthly spend cap, remaining budget, and opt-in `agent_can_promote` policy set by an owner or admin). - **State-driven loop**: Poll `GET /api/projects/{project}/build-orders/{order}/progress` and inspect `state`, `waiting_for`, `choices`, `requires_person`, and `legal_next`. - When `waiting_for` is `answer_questions`, submit answers via `POST /api/projects/{project}/build-orders/{order}/decisions`. - When `waiting_for` is `approve_offer` and within your project's `agent-policy` spend cap, approve via `decisions` (or surface the approval link to the human owner when above cap or when `requires_person` is true). - Never attempt to bypass `requires_person` gates or insufficient-credit (`402`) responses; present the returned message and approval or top-up link to the human owner. ## Public API Overview - **Discovery & docs**: - `GET /api/schema` — Public OpenAPI 3.1 specification (`https://eden.fatelabs.ca/api/schema`) - `GET /llms.txt` — This plain-text agent guide - `GET /agents.md` — Step-by-step agent onboarding instructions - `GET /health/ready` — Service readiness check - Interactive docs: `https://eden.fatelabs.ca/#/docs` - **Identity & projects**: - `GET /api/me` — Current authenticated principal and project scope - `GET /api/projects`, `POST /api/projects`, `PATCH /api/projects/{project}`, `DELETE /api/projects/{project}` - `POST /api/projects/{project}/archive`, `POST /api/projects/{project}/restore` - `GET /api/projects/{project}/events` - **API keys & agent policy**: - `GET /api/projects/{project}/api-keys`, `POST /api/projects/{project}/api-keys`, `GET /api/projects/{project}/api-keys/usage`, `DELETE /api/projects/{project}/api-keys/{key}` - `GET /api/projects/{project}/agent-policy`, `POST /api/projects/{project}/agent-policy` - **Builds & deployments**: - `GET /api/projects/{project}/build-orders`, `POST /api/projects/{project}/build-orders` - `GET /api/projects/{project}/build-orders/{order}`, `GET /api/projects/{project}/build-orders/{order}/progress`, `GET /api/projects/{project}/build-orders/{order}/events` - `POST /api/projects/{project}/build-orders/{order}/decisions`, `POST /api/projects/{project}/build-orders/{order}/cancel`, `POST /api/projects/{project}/build-orders/{order}/resume` - `GET /api/projects/{project}/build-orders/{order}/name`, `POST /api/projects/{project}/build-orders/{order}/name` - `GET /api/projects/{project}/build-orders/{order}/runs`, `GET /api/projects/{project}/build-orders/{order}/runs/{run}/compare` - `GET /api/projects/{project}/build-orders/{order}/package`, `GET /api/projects/{project}/build-orders/{order}/package/archive`, `GET /api/projects/{project}/build-orders/{order}/package/files/{path}` - `GET /api/projects/{project}/build-orders/{order}/deploy`, `POST /api/projects/{project}/build-orders/{order}/deploy/traffic` - `GET /api/projects/{project}/build-orders/{order}/integration`, `POST /api/projects/{project}/build-orders/{order}/playground` - `GET /api/projects/{project}/build-orders/{order}/messages`, `POST /api/projects/{project}/build-orders/{order}/messages` - `POST /api/projects/{project}/build-orders/{order}/sources`, `POST /api/projects/{project}/build-orders/{order}/warm`, `POST /api/projects/{project}/build-orders/{order}/improve` - **Data you bring**: - `GET /api/projects/{project}/datasets`, `POST /api/projects/{project}/datasets`, `GET /api/projects/{project}/dataset-usage` - `GET /api/projects/{project}/source-files`, `POST /api/projects/{project}/source-files` - `GET /api/projects/{project}/intake-limits`, `GET /api/projects/{project}/intake-uploads`, `POST /api/projects/{project}/intake-uploads`, `GET /api/projects/{project}/intake-uploads/{upload}`, `DELETE /api/projects/{project}/intake-uploads/{upload}` - Resumable upload steps: `GET/POST .../parts`, `POST .../complete`, `POST .../validate`, `POST .../rights`, `POST .../accept`, `POST .../reject` - **Production traces & outcomes**: - `GET /api/projects/{project}/trace-batches`, `POST /api/projects/{project}/trace-batches` - `GET /api/projects/{project}/outcomes`, `POST /api/projects/{project}/outcomes` - **Billing & pricing (read-only)**: - `GET /api/pricing/models` - `GET /api/billing`, `GET /api/billing/bill`, `GET /api/billing/charges`, `GET /api/billing/invoices`, `GET /api/billing/usage-limits` - `GET /api/projects/{project}/billing`