Connect Codex to your account

8 views
Short answer: In your terminal run codex mcp add sib --url https://ai.sib.host/mcp and then codex mcp login sib. Your browser opens the sign-in page of this site; sign in and click "Allow". No key is needed.

Codex is OpenAI's coding assistant and works in the terminal, the ChatGPT desktop app and the editor extension. All three share one configuration, so you connect once and Codex sees your services at سیب هاست everywhere.

Quick reference

Server namesib
Connection address (MCP)https://ai.sib.host/mcp
Recommended methodSign in with your account on this site (OAuth), no key
Second methodAPI key in the SIB_AI_KEY environment variable
Configuration file~/.codex/config.toml (on Windows %USERPROFILE%\.codex\config.toml)
Check the statuscodex mcp list in the terminal or /mcp inside Codex
Manage and revokeClient area > AI assistant

Commands to connect with your account

codex mcp add sib --url https://ai.sib.host/mcp
codex mcp login sib

Quick diagnosis

Message you seeWhat it means and what to do
The browser did not openYou are on a machine without a browser. Run codex mcp login sib --no-browser and follow the tips below.
sib has no tools in /mcpYou have not signed in yet or the connection has expired. Run codex mcp login sib again.
Invalid API keyWith the key method, the key is wrong or revoked. Create a new key on the AI assistant page and set SIB_AI_KEY again.
You have reached your key limitEach app connection counts as a key. Revoke an old key on the AI assistant page.

Steps

  1. Add the server: Run the first command above in your terminal. sib is saved in config.toml.
  2. Sign in: Run the second command. Your browser opens the sign-in page of this site. If Codex already opened the browser after the first command, sign in there and skip the second command.
  3. Choose the access: Choose the services, the access level and how long it lasts, then click "Allow". The "Connected" message means the browser part is done.
  4. Try it: Open Codex, check with /mcp that sib is connected and ask "Show my services at سیب هاست".

Connect with a key (second method)

Create a key with the "Create a new key" form on the AI assistant page. The ready-to-run commands with that key appear after you create it. They look like this; first put the key in an environment variable (first command on Windows, second on macOS and Linux):

setx SIB_AI_KEY "YOUR_KEY"
export SIB_AI_KEY="YOUR_KEY"

Then add these lines to config.toml:

[mcp_servers.sib]
url = "https://ai.sib.host/mcp"
bearer_token_env_var = "SIB_AI_KEY"

Troubleshooting and tips

  • Terminal without a browser (for example SSH): codex mcp login sib --no-browser prints a sign-in link. Open it in a browser on your own computer, sign in and click "Allow". The browser then goes to an address that starts with http://127.0.0.1 and may not load. Copy the full address from the address bar and paste it into the terminal.
  • After setx: On Windows the variable is only visible in a new terminal. Close the terminal and open it again.
  • Remove the connection from Codex: Run codex mcp remove sib. To cut access completely, also revoke the connection on the AI assistant page.
  • ChatGPT in the browser: chatgpt.com has its own setup. See the ChatGPT guide.
  • Note: If it still does not connect, see Troubleshooting the AI assistant connection.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket