-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenclaw.json.template
More file actions
74 lines (70 loc) · 1.55 KB
/
openclaw.json.template
File metadata and controls
74 lines (70 loc) · 1.55 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
64
65
66
67
68
69
70
71
72
73
74
// OpenClaw configuration (JSON5 format).
// Secrets use ${VAR} syntax — resolved by pass-cli run from pass:// URIs.
// Telegram token comes directly from .env (not through Proton Pass).
{
gateway: {
port: 18789,
mode: "local",
bind: "loopback",
auth: {
token: "${OPENCLAW_GATEWAY_TOKEN}",
},
},
models: {
providers: {
google: {
baseUrl: "https://generativelanguage.googleapis.com",
apiKey: "${GOOGLE_GENERATIVE_AI_API_KEY}",
models: [
{ id: "gemini-2.5-pro", name: "Gemini 2.5 Pro" },
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash" },
],
},
// Uncomment additional providers as needed:
// anthropic: {
// apiKey: "${ANTHROPIC_API_KEY}",
// },
// openai: {
// apiKey: "${OPENAI_API_KEY}",
// },
// openrouter: {
// apiKey: "${OPENROUTER_API_KEY}",
// },
},
},
agents: {
defaults: {
model: {
primary: "google/gemini-2.5-pro",
},
},
list: [
{
id: "default",
identity: {
name: "${BOT_NAME}",
emoji: "🦞",
},
},
],
},
plugins: {
entries: {
telegram: { enabled: true },
},
},
channels: {
telegram: {
enabled: true,
botToken: "${TELEGRAM_BOT_TOKEN}",
dmPolicy: "open",
allowFrom: ["*"],
streamMode: "partial",
},
// Uncomment additional channels as needed:
// discord: {
// enabled: true,
// token: "${DISCORD_BOT_TOKEN}",
// },
},
}