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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
= "codex"
[]
= "responses"
= "https://api.openai.com/v1"
= "OPENAI_API_KEY"
# Optional plaintext key. When set, this takes precedence over api_key_env.
# Warning: protect this file and never commit a real key.
# api_key = "sk-..."
= 8192
# OpenAI's default is used when base_url is omitted.
# base_url = "https://api.openai.com/v1"
# For an OpenAI-compatible third-party gateway, add another provider:
# [providers.gateway]
# type = "chatcompletion"
# base_url = "https://gateway.example/v1"
# api_key_env = "GATEWAY_API_KEY"
# Anthropic provider example:
# [providers.anthropic]
# type = "anthropic"
# base_url = "https://api.anthropic.com"
# api_key_env = "ANTHROPIC_API_KEY"
# Third-party gateways can require extra headers.
[]
# X-Tenant = "acme"
# Provider-level request fields are inherited by every linked model.
[]
# service_tier = "priority"
[]
= "openai"
= "gpt-5.6"
= "medium"
= ["low", "medium", "high", "xhigh", "max"]
= 1050000
# /status prices a session from models.dev. Set this when several providers list
# the same model id at different rates; /status names the candidates when so.
# pricing = "openai/gpt-5.6"
#
# Or state the rates yourself, in USD per million tokens. These win over
# models.dev and need no network.
# [models.codex.cost]
# input = 1.25
# output = 10.0
# cache_read = 0.125
# cache_write = 0.0
# Multiple model profiles may share a provider and override request settings.
# [models.fast]
# provider = "openai"
# model = "gpt-5.6"
# effort = "low"
# efforts = ["none", "low", "medium"]
# context_window = 1050000
# max_tokens = 4096
#
# [models.fast.request]
# service_tier = "default"
[]
= false
= "ctrl-o"
= 2048
= 8192
= 16
= 6
# Hunk lines shown per apply_patch call.
= 24
[]
# Default bash timeout. A call that expects to be slow can ask for more, up to
# bash_max_timeout_seconds, so this stays short without blocking long builds.
= 120
= 1800
= 8
= 65536
[]
= 5
= 131072
= 1000
[]
= 50
= 5000
= 1000
# Largest previous file contents kept so a rewind can offer to restore them.
# Anything larger is reported as unrestorable instead of half-restored.
= 1048576