# SDK, CLI and MCP

> The @sypnia/ai package, the ai command and the MCP tools for agents.

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

For agents: Tools: @sypnia/ai (MIT; /server with secret key, /browser with browser tokens; chat, extract, embed, browserTokens, usage), the ai CLI (npx @sypnia/ai; login shared with npx @sypnia/app login), the MCP server https://mcp.ai.sypnia.com (reads, try_prompt within a budget, draft_routes; applying routes and changing limits need a person). Any OpenAI-compatible client works against /v1.

Three ways in, one API underneath. Any OpenAI-compatible client works too, by pointing it at `https://ai.api.sypnia.com/v1`.

- [SDK](/tools/sdk/): The @sypnia/ai package for servers and browsers: every function, its options and what it returns.
- [CLI](/tools/cli/): The ai command: models, routes, trying a task, keys, limits, usage and calls.
- [MCP for agents](/tools/mcp/): The AI MCP server and its tools: what an agent can read, try and propose, and what waits for a person.
