Skip to content

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

SurfaceWhat it is
Completions APIOpenAI- and Anthropic-compatible /v1/* endpoints with metering, plan limits, queueing and multi-router failover
SleepyAI ChatA ChatGPT-style web app with per-connector tools, citations, image/vision, and shared usage limits
sleepy CLIA 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 clientClaude 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:

  1. Quickstart — sign up, mint a key, make your first request in under a minute.
  2. 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?".)
  3. API reference — base URL, authentication, the full endpoint list, and error shapes.
  4. Client guides — point OpenAI-compatible clients, Anthropic-compatible clients (Claude Code), Cursor, Continue and LiteLLM at the gateway.

Already know what you want?

Where things live


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.

Sleepy AI Docs | SleepyAI - Your Coding Agent and Unified AI GateWay