SeaLinkSeaLink
/
Back to integrations

Tool setup

Codex CLI + SeaLink

Point OpenAI Codex CLI at SeaLink and use Responses-compatible models as your terminal coding agent. What Codex can do — read files, run commands, make edits — depends on the permissions you grant it locally.

Terminal agentOpenAI-compatible

Prerequisites

  • Node.js ≥ 18 (run node -v to check)
  • npm global install permissions
  • A valid SeaLink API Key
  • Network access to sealink.io

Setup Steps

1

Install Codex CLI

Requires Node.js ≥ 18. In your terminal: npm install -g @openai/codex Verify the installation with: codex --version Windows users: we recommend Windows Terminal. macOS and Linux users can use the built-in terminal.

2

Get an API Key

Go to your SeaLink dashboard → Keys and either create a new API Key or copy an existing one (starts with sk-sealink-).

3

Set the API key environment variable

Codex reads the API key through the env_key specified in your provider config. Set it first: macOS / Linux: export OPENAI_API_KEY=sk-sealink-your-key Windows (PowerShell): [Environment]::SetEnvironmentVariable('OPENAI_API_KEY', 'sk-sealink-your-key', 'User') Close and reopen PowerShell for the change to take effect.

4

Configure a Codex provider

Edit ~/.codex/config.toml and add: model = "gpt-4o-mini" model_provider = "sealink" [model_providers.sealink] name = "SeaLink" base_url = "https://test.sealink.io/v1" env_key = "OPENAI_API_KEY" wire_api = "responses" supports_websockets = false

5

Verify the setup

In your terminal: codex --help If you see the help text, the CLI is installed correctly. Then test with: codex exec "Reply exactly codex-ok" If Codex returns codex-ok without errors, it's working through SeaLink.

6

Start using it

Navigate to your project folder. Run codex for interactive mode, or codex exec "your task" for one-shot execution. Codex can help you: - Read and analyze your codebase - Create and edit files - Run shell commands - Install dependencies

Operating System Notes

Windows

Env vars: Use PowerShell's [Environment]::SetEnvironmentVariable for permanent settings, or add them via System Properties → Advanced → Environment Variables. Terminal: Windows Terminal recommended. Node.js: Download the installer from nodejs.org.

macOS

Shell: Defaults to zsh, config file is ~/.zshrc. Older Macs may use bash with ~/.bash_profile. Node.js: brew install node is the easiest method. npm global path: Usually /usr/local/lib/node_modules/.

Linux

Shell: bash on most distributions, config file is ~/.bashrc. Node.js: We strongly recommend using nvm — apt's bundled version tends to be quite old. npm global path: ~/.nvm/versions/node/ if you're using nvm.

Common Issues

'codex: command not found'

npm's global bin directory isn't in your system PATH. Run npm config get prefix to find it, then add that path to your PATH. Common default locations: • Windows: %APPDATA%/npm/ • macOS / Linux: /usr/local/bin/ or ~/.npm-global/bin/

Codex still calls api.openai.com

Setting OPENAI_BASE_URL alone isn't enough. Open ~/.codex/config.toml and check that model_provider = "sealink" is set correctly, and that [model_providers.sealink].base_url points to SeaLink.

Slow or timed out

Codex reads your project context on first run, which takes longer than a simple chat request — that's expected. If timeouts persist, try testing in a small folder with a lightweight model first, then check your network connectivity and the status page.

Some models not compatible

Codex CLI currently requires Responses API semantics, and not all models support this. Use chat or code models that have been verified on the /v1/responses endpoint. For Claude models, use Claude Code via the Anthropic protocol instead.