Get started
Sai API
What the Sai API is and how a request flows through it.
View as MarkdownThe Sai API lets your code or your coding agent hand a task to Sai, a computer-use agent that works on a real Windows or macOS computer. You send a message, Sai works on the computer, and you read the result.
Which Simular API is this
This site documents three things that are easy to confuse:
Base URL
https://api.simular.ai/v1/agentsThe portal, where you sign in and create API keys, is platform.simular.ai.
How a request flows
- You
POST /messagewith a task. Withwait: falsethe API answers at once with asessionId. - Sai works on the computer. You
GET /eventsto read progress, text and approval requests. - When Sai needs permission, an event of type
data-approval-requestarrives. You answer it withPOST /approve, or you open itsapprovalUrlin a browser when a human has to act. - When
statusisidle,textholds the result.
Every call carries Authorization: Bearer sapi_.... See Authentication.
Two ways to use it
- HTTP. Any language. Start with the Quickstart and the examples.
- A coding agent. Claude Code, Codex and Cursor call Sai through the
@simular-ai/sai-mcpserver. One command installs it. See Claude Code.
What you get
- A computer. Paid accounts see their own registered machines. Free accounts get one pooled Windows cloud computer. See Computers.
- One conversation per computer on the API channel. Follow-up messages continue it. See Sessions.
- No model keys to bring. The model and the computer are included in your Sai plan. See Billing and limits.
Streaming or polling
POST /message with wait: true (the default) streams events over Server-Sent Events. Use it from a browser or a long-lived process. Coding agents and short scripts should send wait: false and poll /events. Both paths carry the same event vocabulary.