Docs
Connect your tool.
Base URL https://api.project8.app. Also available as a plain Markdown guide.
Project8 is an independent gateway built on third-party AI models. Not affiliated with or endorsed by Anthropic. Claude is a trademark of Anthropic.
01
Quick start
npx project8-cli
curl -fsSL https://project8.app/setup.sh | bash
irm https://project8.app/setup.ps1 | iex
To remove the wizard’s settings, run npx project8-cli uninstall.
One key, one person: a key works on up to 5 devices at the same time. Keys used on more devices are treated as shared and suspended without refund.
02
Set up your tool
- Run npx project8-cli and paste your key, or edit the settings file yourself.
- The VS Code extension for Claude Code reads the same file.
- Restart Claude Code.
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"ANTHROPIC_BASE_URL": "https://api.project8.app",
"CLAUDE_CODE_AUTO_MODE_SERVER": "0"
}
}03
API reference
| POST /v1/messages | Create a message in the Anthropic format. Set "stream": true for server-sent events. API key required. |
|---|---|
| POST /v1/messages/count_tokens | Count the tokens of a message without sending it. API key required. |
| POST /v1/chat/completions | Create a completion in the OpenAI format. API key required. |
| GET /v1/models | List the model IDs the server accepts, with context windows. |
| GET /api/key-status?key= | Status, usage and limits of one key. |
x-api-key: YOUR_API_KEY # or Authorization: Bearer YOUR_API_KEY
curl https://api.project8.app/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"model":"claude-sonnet-4-6",
"max_tokens":1024,
"messages":[{"role":"user","content":"Hello"}]}'04
Compatible model IDs
| Compatible model ID | Context |
|---|---|
| claude-fable-5-2 | 1M |
| claude-fable-5-1 | 1M |
| claude-fable-5 | 1M |
| claude-opus-5-5 | 1M |
| claude-opus-5 | 1M |
| claude-sonnet-5-5 | 1M |
| claude-sonnet-5 | 1M |
| claude-haiku-5-5 | 200K |
| claude-opus-4-8 | 1M |
| claude-opus-4-7 | 1M |
| claude-opus-4-6 | 1M |
| claude-sonnet-4-6 | 1M |
| claude-opus-4-5 | 200K |
| claude-sonnet-4-5-20250929 | 200K |
| claude-haiku-4-5-20251001 | 200K |
| claude-opus-4-1-20250805 | 200K |
| claude-opus-4-20250514 | 200K |
| claude-sonnet-4-20250514 | 200K |
These are IDs your client can send. The gateway routes each one to a compatible third-party model; an ID does not mean the request is served by Anthropic’s model of that name.
05
Limits
| Token budget | Per key, per 5-hour window. The window starts with your first request. |
|---|---|
| What counts | Non-cached input and output tokens; prompt cache reads are not counted. Some model IDs count at a higher rate. |
| Rate limit | Requests per minute, set by your plan. |
| Devices | One person per key, up to 5 devices at once unless your key shows another limit. |
| Usage | Check the key status page or your console. |
06
Troubleshooting
Connection errors
Check that the base URL is https://api.project8.app (OpenAI-format clients add /v1) and that your key is active on the key status page.
Unauthorized
Send the whole key, starting with p8-, in the x-api-key header or as a Bearer token. A regenerated key replaces the old one.
Model not found
Send an ID exactly as GET /v1/models lists it.
Requests refused for limits
Your 5-hour budget or your per-minute rate may be used up. The key status page shows when the window resets.
Changes do not apply
Fully restart your editor or terminal after changing its configuration.
Web search or image input does not work
These are available only where your plan and server provide them.
Still stuck
Email [email protected] with the time of the failed request and the error text. Never send your full key.