CLI + VS Code Extension + API

Develop with AI
inside your terminal.

An intelligent AI code companion for your terminal and VS Code, coupled with a high-performance completions API, managed virtual keys, and real-time token tracking.

Terminal
$

Install in seconds

curl -fsSL https://www.sleepyai.org/install | bash

No dependencies. One command. Run sleepy to start.

0
Total API Tokens Routed

Why Sleepy

Everything you need to ship with AI

Terminal-Native AI

An AI coding companion that lives in your terminal. No IDE lock-in, no web editor — just you and your agent in the shell.

Multi-Model Routing

One API, many models. OmniRoute picks the best model per request with automatic failover when a provider is down.

Managed API Keys

Virtual keys with role-based limits. Generate, rotate, and revoke keys from the dashboard without touching your gateway config.

Real-Time Usage Tracking

Token counts, cost, and request windows updated live. Know exactly what you spend, per window, per model.

Fair Billing

Pay-as-you-go credits with per-window rate limits that reset on plan change. No surprise invoices, no hidden fees.

Referral Rewards

Invite friends with your link and earn bonus tokens and credit when they verify their account with Telegram.

From zero to first request in minutes.

No config files to hand-edit. No vendor accounts to juggle. Just a terminal, a key, and a gateway that handles the routing for you.

That's it.

01

Install the CLI in one command.

curl the installer, or npm i -g @sleepy-ai/cli. No dependencies, no IDE lock-in. You're authenticated in seconds.

02

Generate a virtual API key.

Create keys from the dashboard with per-window limits. Rotate or revoke them anytime without touching your gateway.

03

Route your first request.

OmniRoute picks the best model per request and fails over automatically. Watch tokens and cost stream in real time.

Start buildingwithSleepyin minutes,not daysfree tier

Install the CLI or the VS Code extension, create your key, and route your first request through SleepyAI.

No credit card required. Cancel anytime.

FAQ.

Everything you need to know about Sleepy. Can't find what you're looking for? Reach out to our support team.

Sleepy is a terminal-native AI coding companion coupled with a high-performance completions API. The CLI runs your agent in the shell, and OmniRoute proxies requests across multiple model providers with automatic failover.

One command: `curl -fsSL https://www.sleepyai.org/install | bash` on macOS/Linux, or `irm https://www.sleepyai.org/install.ps1 | iex` from PowerShell on Windows. You can also install globally with npm via `npm i -g @sleepy-ai/cli`. No other dependencies.

No. The CLI uses authenticated sessions, so you can start with the free tier immediately. API keys are available on paid plans for direct API access and are managed from the dashboard.

Plans come with a monthly usage allowance. Extra usage is metered as credits you can top up anytime. Per-window rate limits (5h / 24h / weekly) protect you from surprise bills, and usage resets when you change plans.

SleepyAI routes across multiple providers, so you get access to many models through a single API. Browse the full list at /models, and the router picks the best model per request with failover.

SleepyAI doesn't store any of your prompt or completion data, rather it just proxies the API call from original provider. The original providers may use your anonymous prompt and completion data for AI training.