Skip to main content
This guide covers the Codex CLI in your terminal. For the desktop app, see Codex.

Who does what

Each person adds Nebuly in their own Codex CLI. Nobody on your team has to set it up for you.

Before you start

  • A Nebuly account with MCP access.
  • The Codex CLI installed.
  • Your MCP server URL, shown in the tabs below.
Use this URL:
If your SaaS account uses a custom authentication URL, ask your Nebuly representative for MCP access. Then use https://<YOUR_AUTH_URL>/mcp.

Set it up

1

Add the server

Run this command. Replace <NEBULY_MCP_URL> with your URL from the tabs above.
This adds Nebuly to ~/.codex/config.toml and opens your browser to sign in.
2

Sign in

Sign in with your Nebuly account in the browser that opens. If Codex didn’t open it, run this command:
3

Test the connection

Run this to check that nebuly-mcp is listed:
Then ask Codex this. It should answer with your Nebuly projects.

Troubleshooting

  • The browser didn’t open to sign in. Run codex mcp login nebuly-mcp to start the sign-in again.
  • nebuly-mcp isn’t listed. Run the add command again with the correct URL, then check the list.
  • Self-hosted server doesn’t connect. Check that your MCP URL is correct and that MCP access is enabled for your deployment.

All MCP agents

Go back to the MCP Server overview and pick another agent.