Codex · Client setup guide
Add this configuration to ~/.codex/config.toml and start Codex from the same terminal so it inherits KOINOTE_MCP_TOKEN.
The free plan includes editing, sync, image hosting, export, and sharing. Document MCP, repository MCP, and the built-in AI assistant require lifetime membership. Configuration sync uses separate temporary authorization.
Create an MCP tokenSet the environment variable
Set your actual token in the terminal that starts the client. knt_mcp_... is a placeholder. Protect credentials with environment variables or secure storage and keep them out of repositories. Start with a read-only token.
Bash
export KOINOTE_MCP_TOKEN='knt_mcp_...'~/.codex/config.toml
[mcp_servers.koinote]
url = "https://koinote.app/mcp"
bearer_token_env_var = "KOINOTE_MCP_TOKEN"Use a Codex CLI version that supports remote HTTP MCP and bearer_token_env_var. Restart the client after changing the configuration.
Official client documentationRead-only verification and troubleshooting
Inspect the tool list, then call list_documents with a read token. For a 401, check the client process’s environment variable, credential type, expiry, and revocation status. Document and repository access also require active lifetime membership. Check the scope if write tools are missing.
For repositories, use the connection name koinote-agent, the KOINOTE_AGENT_TOKEN environment variable, and a repository PAT. Copy separate configuration-sync instructions from the snapshot.