Open the API keys page
Sign in to the dashboard
Visit https://dash.4096bytes.com/login and sign in to your 4096bytes account.

claude-code-mac, codex-work, or cursor-desktop.
Create a key
Click Create key. The dashboard opens a dialog. At minimum, fill in Name and choose a Group. Keep other switches off unless you know you need the restriction.
Choose a group
Select the model route, plan, or group this key should use. Rates, available models, and quota rules may differ by group. Use what the dashboard shows.
Leave custom key off
Keep Custom key disabled unless you have a specific reason to fix the key string. Auto-generated keys are safer.
Enable IP restriction only when needed
Use IP restriction only for fixed servers or fixed outbound IPs. It is usually not suitable for laptops or mobile networks.
Set a quota limit if needed
Quota limit controls the maximum USD amount this key can consume.
0 means unlimited. Use a small limit for temporary projects, team members, or rarely used devices.Set rate limits if needed
Enable Rate limit only when you need to reduce concurrency or prevent abnormal client usage.
Set an expiry if needed
Use Key validity period for temporary test keys. Long-term local tools can stay valid longer.
Naming examples
| Scenario | Example name |
|---|---|
| Codex CLI | codex-macbook |
| Claude Code | claude-code-work |
| Cursor | cursor-desktop |
| Cherry Studio | cherry-studio-home |
Store and use the key
Store the key in a password manager, system keychain, or local-only environment variable. Do not put it in public repositories, screenshots, chat logs, or shared documents. For Claude Code, check whether the API key list has a Use key action. The dashboard may show environment variables or config snippets for that key. For tools that support import, check whether the dashboard provides a one-click import action. Names and available actions depend on the current dashboard.Test whether the key works
After creating a key, prefer the target client’s built-in test action. You can also test the OpenAI compatible models endpoint.macOS or Linux
Windows PowerShell
YOUR_4096BYTES_API_KEY with the API Key you just created.
If the response contains a model list, the API Key and Base URL are basically working.
If the test fails, check these items first.
| Item | What to check |
|---|---|
| Complete key | Do not miss characters or copy extra spaces/newlines. |
| Available group | The key group must be enabled and contain the model you call. |
| Balance or quota | Account balance, subscription quota, and key quota can all affect requests. |
| Correct Base URL | Copy the Base URL shown in the dashboard. Do not guess the path. |