Repository navigation
Expand file tree
/
Copy pathconfig.oauth.example.toml
More file actions
60 lines (55 loc) · 1.69 KB
/
Copy pathconfig.oauth.example.toml
File metadata and controls
60 lines (55 loc) · 1.69 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
# Configuration-shape / unit-test example only. Runtime is initialized by management APIs.
# For new accounts use vault login/provision commands; see README.md.
# Existing account paths are relative to this import file.
[server]
bind = "127.0.0.1:4000"
request_timeout_secs = 180
# admin_key_env = "TEELLM_ADMIN_KEY"
[[users]]
id = "test-user"
max_concurrent = 16
[[keys]]
user_id = "test-user"
name = "local"
key_env = "TEELLM_API_KEY" # Router access key, not a provider API key.
models = ["chat/*", "claude/*", "grok/*"] # Pool ACLs; model is passed unchanged.
max_concurrent = 16
[[models]]
name = "chat"
strategy = "round_robin"
max_attempts = 3
[[models.deployments]]
id = "chatgpt-account-1"
provider = "openai"
model = "env:OPENAI_MODEL"
oauth_file = "accounts/chatgpt-1.json"
proxy = "http://127.0.0.1:18081" # Imported into the encrypted account binding.
# Default OAuth API: https://chatgpt.com/backend-api/codex
[[models.deployments]]
id = "chatgpt-account-2"
provider = "openai"
model = "env:OPENAI_MODEL"
oauth_file = "accounts/chatgpt-2.json"
proxy = "http://127.0.0.1:18082"
enabled = false
[[models]]
name = "claude"
[[models.deployments]]
id = "claude-account-1"
provider = "anthropic"
model = "env:ANTHROPIC_MODEL"
# Replace with your actual Claude Code credential file, for example:
# oauth_file = 'C:\Users\YOUR_USER\.claude\.credentials.json'
# Claude Code manages login/refresh; import renewed credentials into the vault.
oauth_file = "accounts/claude-1.json"
proxy = "http://127.0.0.1:18083"
enabled = false
[[models]]
name = "grok"
[[models.deployments]]
id = "grok-account-1"
provider = "xai"
model = "env:XAI_MODEL"
oauth_file = "accounts/grok-1.json"
proxy = "http://127.0.0.1:18085"
enabled = false