Quick Start
codelace gives you access to Claude and GPT models through a single API endpoint. Set two environment variables and use any OpenAI-compatible SDK.
1. Create your account
Go to the login page and verify your email. New accounts are created automatically the first time you enter a valid code.
2. Add a card or top up balance
After signing in, go to the Dashboard and use the Billing tab to add a card with Stripe. We do not charge you during setup, and once it succeeds you get $1 of trial credit to try the API immediately. If you need more balance, top up any amount from $10. Then create an API key under the API Key tab.
3. Set environment variable
export OPENAI_BASE_URL=https://api.codelace.com/v1 export OPENAI_API_KEY=cl_your_key
4. Make a request
from openai import OpenAI
client = OpenAI(
base_url="https://api.codelace.com/v1",
api_key="cl_your_key",
)
response = client.chat.completions.create(
model="anthropic/claude-opus-4.6",
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)
for chunk in response:
print(chunk.choices[0].delta.content or "", end="")That's it. Any model listed on the pricing page can be used with the same base URL and API key.
Available model
Anthropic: anthropic/claude-opus-4.6, anthropic/claude-sonnet-4.6
OpenAI: openai/gpt-5.4, openai/gpt-5.3-codex, openai/gpt-5.2-codex, openai/gpt-5.2