Blue Ring DocsBEGINNER GUIDE / 01
Console
BLUE RING · API BEGINNER GUIDE

Seven steps,and your first request works.

A guide for your first time using an API. You will install a client, create your own API key, import it into CCSwitch, and send “hi” from Codex. Every step tells you what you should see.

BASE URL · COPY THIS LINE ONLYhttps://api.blue-ring.xyz/v1
01 Install client02 Create key03 Import config04 Start with Codex

Before you start, you need three things

This guide follows CCSwitch + Codex. If you only call the API, skip ahead to the optional chapter at the end.

01
A Blue Ring account

Used to open the console, create keys, and check your own usage.

02
A client to call from

Codex + CCSwitch is recommended. Developers can use a terminal or Python directly.

03
Your own API key

Once imported from the console, CCSwitch hands this provider config to Codex.

When this chapter is done:Codex returns a normal reply, and the request shows up in your console usage page.

Step 1 · Get the tools in place

Install Codex and CCSwitch

Install first, configure second. Do not tune Codex defaults before a provider exists.

  1. Install CodexUse whatever install method your system offers. Do not build a complex config inside it yet.
  2. Install CCSwitchCCSwitch stores and switches providers, and runs on Windows, macOS, and Linux. Open the release page and download the package for your system.Download CCSwitch
  3. Both apps openSeeing the windows is enough. There is no API key yet, so nothing to send.
Optional

API-only developers can skip both tools and jump to “Call the API (optional)” at the end.

Setup
CodexSends your first message
Installed
CCSwitchStores provider config
Installed
Tools ready — next, sign in to the console
Step 2 · Get into your console

Sign up or sign in to Blue Ring

Keys and usage live in the console. Never ask anyone for a “public key”.

CONSOLE

Open the Blue Ring console

Use the button to open the home page, then sign in or sign up. You land in your user console.

Open console
You will seeHomeSign in / Sign upConsole

A menu entry for API Keys is visible in the sidebar or on the page.

Step 3 · Create a dedicated key

Create an API key and save it right away

A key is permission to call. Create one per device or per purpose, so a problem only costs you that one key.

  1. Open API KeysGo to the API Keys page in the console.
  2. Click create keyUse a name you will recognise, such as codex-mac or dev-test.
  3. Pick a groupIf groups or model groups are offered, choose by the capability you need. When unsure, keep the default.
  4. Copy the full key onceCopy it a single time after creation and store it in CCSwitch. Do not paste it into a group chat.
API KEY · SHOWN ONLY ONCE
sk-••••••••••••••••••••••••Hidden

Never put a full key in screenshots, Git, public issues, or chat history.

Look here:Fill in the name and group, leave the other switches at their defaults. The full key only appears after creation; no real key is shown here.

The key is in your password manager or client secure storage, and you know which device it belongs to.

Step 4 · Hand the config to CCSwitch

Import the provider — no manual model setup

Prefer the console’s “Import to CC Switch” button. Only fill the fields below by hand when automatic import is unavailable.

Find this column:After creating the key, click Import to CC Switch under its actions. Names and keys in the figure are redacted.
Confirm, then import:Check that the name, endpoint (base URL), model, and hidden key all come from the key you just created, then click import.
1Back to the key list

Find the key you just created and click “Import to CC Switch”, if the page offers it.

2Open CCSwitch

Allow the browser to open the app, then click import inside CCSwitch.

3Name it and enable

Give it a recognisable name, add and save, then click enable.

FieldWhat to enterWhat not to do
Base URLhttps://api.blue-ring.xyz/v1Keep /v1; do not point it at a request path
API KeyThe key you just createdDo not copy the surrounding quotes, and never use someone else’s key
ModelFollow the client’s promptThe import path usually needs no extra setup
Step 5 · Enable what you just imported

Click enable inside CCSwitch

No terminal, and no model list request first. Once CCSwitch is configured, Codex uses this provider directly.

01Find the Blue Ring entry

Look for the config you just imported in the CCSwitch provider list.

02Click enable

Do not create a second config — enable the one you have.

03Confirm the switch

“In use” or an enabled state means Codex has the config.

This is what you want:The Blue Ring row is selected and shows “In use” or an equivalent enabled state.

The Blue Ring config in CCSwitch shows as enabled or in use.

Step 6 · Back to Codex

Open Codex and type hi

With CCSwitch configured, Codex uses the provider you just enabled.

Codex
Open CodexIf it was already open before the CCSwitch config, close and reopen it
Launch
Type hiSend one short message first — no files or tools yet
Send
A normal reply means Codex is connected
Test the link only:Open Codex, type hi, and send. A normal reply means you can move on.

Codex returns normal content for hi.

Step 7 · Confirm the call

Check usage in the console

Once Codex replies normally, go back to the console and confirm the request and its cost.

01Confirm Codex replied

Read the message itself, not just the client’s loading state.

02Open usage records

Go back to the usage or records page in the console.

03Find this call

Seeing the request and its cost means the whole chain works.

Confirm in the console:Usage records should list the request you just made, with a success state and its cost.
FIRST REQUEST COMPLETE

You have a working Blue Ring setup

Switching models or clients later only means rechecking three things: Base URL, API Key, Model.

01Check the reply

Content coming back from Codex means the client is connected.

02Check the record

The console usage list should show the request.

03Check the cost

Confirm the call produced tokens or a charge.

For developers · only if you skip CCSwitch

Calling the API directly?

The model list, curl, and Python below are for API developers. If you followed CCSwitch + Codex, skip this.

This is not a required Codex step. Continue only if you want to call Blue Ring from a terminal, a script, or your own program.

terminal / models
export BLUE_RING_API_KEY="your-api-key"

curl "https://api.blue-ring.xyz/v1/models" \
  -H "Authorization: Bearer $BLUE_RING_API_KEY"
first-request.sh
export BLUE_RING_API_KEY="your-api-key"
export BLUE_RING_MODEL="a model id from /v1/models"

curl "https://api.blue-ring.xyz/v1/responses" \
  -H "Authorization: Bearer $BLUE_RING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "'"$BLUE_RING_MODEL"'",
    "input": "Introduce yourself in one sentence."
  }'
PYTHON SDK · OPTIONAL

With the OpenAI SDK you only replace base_url and api_key.

python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.blue-ring.xyz/v1",
)

response = client.responses.create(
    model="YOUR_MODEL_ID",
    input="Hello from Blue Ring",
)
print(response.output_text)

Troubleshooting: start with the status code

Confirm CCSwitch is enabled first, then work out whether it is the key, the path, or upstream.

401API_KEY_REQUIRED / unauthorized

The request carried no valid key. Check that Authorization: Bearer ... is present, that the environment variable is not empty, and that the client did not put the key in the wrong field.

404chat/completions not found

The main public path is /v1/responses. If the client can only send /v1/chat/completions, switch it to the Responses API / OpenAI Responses mode.

200A response, but the model is unavailable

On the CCSwitch path, reconfirm the provider is enabled. Calling the API directly? Request /v1/models and use a model ID it returns.

—The request hangs or times out

Test with the shortest possible text first. Rule out an extra proxy, a wrong streaming setting, or a doubled /v1 path before blaming upstream congestion.

↗Codex does nothing after the import

Recheck that the provider is enabled and that the base URL still contains /v1, then close and reopen Codex so it reads the new config.

API key safety: three hard rules

An API key is permission to spend on your account. Treat it like a password, not like ordinary config.

01Keep it out of screenshots

No full key in tutorials, group chats, tickets, or screen recordings.

02Never commit it

Use environment variables or client secure storage; keep it out of the repo.

03Revoke on exposure

Delete the old key in the console, then create a new one and update the client.

CHAPTER 01 COMPLETE

What comes next?

Planned additions: balance and billing, client-specific setups, streaming responses, image requests, and fuller troubleshooting.

Back to top