# Codebase

> Where everything of Sypnia Agent lives.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://agent.docs.sypnia.com/architecture/codebase/

For agents: Repository sypnia-agent (open source): packages/agent (@sypnia/agent: client, runner, CLI), orchestrator/ (TS: loop, policy, budget, context), sandbox/ (Rust crate sypnia-sandbox: supervisor, proxy), skills/ (Sypnia skills), spec/ (OpenAPI, schema of the [agent] table of sypnia.toml), deploy/. Cloud parts (hosted sandboxes, web app, team approvals) in sypnia-cloud.

```text
sypnia-agent/                 open source
├── packages/agent/           @sypnia/agent: client, runner, CLI
├── orchestrator/             the loop, the policy check, the budget, the context
├── sandbox/                  Rust: sypnia-sandbox (supervisor and egress proxy)
├── skills/                   Sypnia's skills
├── spec/
│   ├── openapi.yaml
│   └── agent.schema.json     the [agent] table of sypnia.toml
└── deploy/

sypnia-cloud/                 private
└── agent/                    hosted sandboxes, the web app, team approvals
```
