MarkDB
Connect a client

Codex CLI

Route the OpenAI Codex CLI through MarkDB.

Codex CLI (>= 0.135) speaks the OpenAI Responses API. MarkDB serves that surface and dispatches it natively to whatever provider you choose.

Install

npm i -g @openai/codex

Configure

Add a MarkDB provider to ~/.codex/config.toml:

model = "gemini-2.5-flash"
model_provider = "markdb"

[model_providers.markdb]
name = "MarkDB Proxy"
base_url = "https://proxy.markdb.cloud/v1"
env_key = "MARKDB_API_KEY"
wire_api = "responses"

Then export your key and run Codex:

export MARKDB_API_KEY=mk_live_xxx
codex exec "list the files here and tell me how many are .go files"

Use wire_api = responses

Codex 0.135+ only supports the Responses API. MarkDB translates the Responses wire format (including tool calls) to the underlying provider, so you can run Codex against Gemini or Anthropic, not just OpenAI.

Verify

Run a multi-turn task (codex exec then codex exec resume --last). In the Work log you should see a single session for the whole agentic loop, with tool_call and tool_result events captured.