Repository navigation
Expand file tree
/
Copy pathconfig.toml
More file actions
63 lines (51 loc) · 2.16 KB
/
Copy pathconfig.toml
File metadata and controls
63 lines (51 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Codex CLI -> LiteLLM (apro) proxy
# Mirrors the Claude Code setup: all traffic goes through https://litellm.ai.apro.is
# The proxy REQUIRES the x-github-repo header on every request (set under
# env_http_headers below; the codex wrapper exports CODEX_GITHUB_REPO).
model = "gpt-5.6-sol"
model_provider = "litellm"
personality = "pragmatic"
model_reasoning_effort = "high"
service_tier = "default"
approvals_reviewer = "user"
[model_providers.litellm]
name = "LiteLLM (apro)"
base_url = "https://litellm.ai.apro.is/v1"
# Codex 0.137+ only supports the Responses API (Chat Completions was removed).
wire_api = "responses"
# Codex reads the API key from this env var at runtime (the LiteLLM virtual key).
env_key = "LITELLM_API_KEY"
# Per-repo attribution: the codex wrapper sets CODEX_GITHUB_REPO from the cwd's
# git remote (same detect_github_repo as the claude wrapper).
[model_providers.litellm.env_http_headers]
"x-github-repo" = "CODEX_GITHUB_REPO"
# ---- Convenience profiles: switch with `codex --profile <name>` ----
[profiles.gpt56-sol]
model = "gpt-5.6-sol"
model_provider = "litellm"
[profiles.gpt56-terra]
model = "gpt-5.6-terra"
model_provider = "litellm"
[profiles.gpt56-luna]
model = "gpt-5.6-luna"
model_provider = "litellm"
# NOTE: per-user directory trust lives in each user's local ~/.codex/config.toml,
# NOT here. Codex prompts to trust a directory on first run; that writes a
# [projects."<path>"] block locally. Do not ship personal paths in the shared file.
[tui]
status_line = ["model-with-reasoning", "current-dir"]
status_line_use_colors = true
# ---- MCP servers via the LiteLLM gateway (mirrors the Claude Code setup) ----
# The x-mcp-servers header tells LiteLLM which backend MCP server to route to.
[mcp_servers.firecrawl]
url = "https://litellm.ai.apro.is/mcp/"
bearer_token_env_var = "LITELLM_API_KEY"
http_headers = { "x-mcp-servers" = "Firecrawl" }
[mcp_servers.firecrawl.tools.Firecrawl-firecrawl_scrape]
approval_mode = "approve"
[mcp_servers.firecrawl.tools.Firecrawl-firecrawl_agent]
approval_mode = "approve"
[mcp_servers.searxng]
url = "https://litellm.ai.apro.is/mcp/"
bearer_token_env_var = "LITELLM_API_KEY"
http_headers = { "x-mcp-servers" = "Searxng" }