Sleepy AI Docs
Sleepy AI is a self-hosted, AI-native coding platform. One OpenAI- and Anthropic-compatible API gateway, one virtual key, and one usage pool cover every surface — the web dashboard, the chat app, the…
Sleepy AI is a self-hosted, AI-native coding platform. One OpenAI- and Anthropic-compatible API gateway, one virtual key, and one usage pool cover every surface — the web dashboard, the chat app, the terminal CLI, the VS Code extension, and any third-party client you point at the gateway.
What you can build
| Surface | What it is |
|---|---|
| Completions API | OpenAI- and Anthropic-compatible /v1/* endpoints with metering, plan limits, queueing and multi-router failover |
| SleepyAI Chat | A ChatGPT-style web app with per-connector tools, citations, image/vision, and shared usage limits |
sleepy CLI | A terminal-native coding agent with persistent memory, worktrees, MCP servers, skills, and specialist agent personas |
| SleepyCode (VS Code) | The same agent inside Visual Studio Code |
| Any OpenAI/Anthropic client | Claude Code, Cursor, Continue, LiteLLM, the openai/anthropic SDKs, GitHub Copilot-style setups |
Everything bills to the same pool. A request from Claude Code, a request
from the chat app, and a request from a script using the openai SDK all draw
on your plan's rolling windows and monthly allowance, and all show up in one
usage ledger.
Start here
New to Sleepy? Read in this order:
- Quickstart — sign up, mint a key, make your first request in under a minute.
- Usage limits — how the 5-hour, 24-hour, weekly and monthly caps work, when they reset, and what "credits" have to do with it. (This is the page that answers "why did I get a 429/402?".)
- API reference — base URL, authentication, the full endpoint list, and error shapes.
- Client guides — point OpenAI-compatible clients, Anthropic-compatible clients (Claude Code), Cursor, Continue and LiteLLM at the gateway.
Already know what you want?
- Connect a client → OpenAI-compatible · Anthropic-compatible · Cursor / Continue / LiteLLM
- Understand a bill or a limit → Usage limits · Billing & credits
- Use the chat app → SleepyAI Chat
- Use the terminal agent → Sleepy CLI
- Run it yourself → Self-hosting overview → Install
- Operate a deployment → Configuration · Admin & maintenance
Where things live
- Website: sleepyai.org
- Chat app: chat.sleepyai.org
- Dashboard: sleepyai.org/dashboard
- Model catalogue: sleepyai.org/models
- Pricing: sleepyai.org/pricing
- Download (CLI + VS Code): sleepyai.org/download
- Status: sleepyai.org/status
- Community / support: t.me/sleepyai
Self-hosting note. The hosted service at sleepyai.org runs this exact stack. If you want to own the whole thing — gateway, billing, chat app, CLI — see Self-hosting. The docs marked "Admin" apply to whoever runs the deployment; on sleepyai.org that's the Sleepy team.