-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
112 lines (83 loc) · 5.06 KB
/
config.example.toml
File metadata and controls
112 lines (83 loc) · 5.06 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# ClawSharp Configuration Example
# Copy to ~/.clawsharp/config.toml and edit
# ── General ──────────────────────────────────────────────────────────────────
# Working directory for agent files, memory, etc.
workspace_dir = "~/.clawsharp/workspace"
# Data directory for databases, sessions, etc.
data_dir = "~/.clawsharp"
# Default LLM provider: "openai", "anthropic", "openrouter", "ollama"
default_provider = "openai"
# Default model to use
default_model = "gpt-4o"
# Sampling temperature (0.0–2.0)
default_temperature = 0.7
# Maximum context window size in tokens
max_context_tokens = 128000
# ── Providers ────────────────────────────────────────────────────────────────
[providers.openai]
api_key = "sk-..." # Your OpenAI API key
# base_url = "https://api.openai.com/v1" # Custom endpoint (optional)
default_model = "gpt-4o"
[providers.anthropic]
api_key = "sk-ant-..." # Your Anthropic API key (used when auth_mode is "api_key")
# base_url = "https://api.anthropic.com"
default_model = "claude-sonnet-4-20250514"
# OAuth authentication (alternative to api_key)
# auth_mode = "oauth" # Set to "oauth" to use OAuth tokens from auth-profiles.json
# auth_profile_id = "anthropic:default" # Profile ID in auth-profiles.json
# auth_profiles_path = "~/.openclaw/agents/main/agent/auth-profiles.json"
[providers.openrouter]
api_key = "sk-or-..." # Your OpenRouter API key
default_model = "anthropic/claude-sonnet-4-20250514"
[providers.ollama]
base_url = "http://localhost:11434" # Ollama server URL
default_model = "llama3"
[providers.minimax]
api_key = "your-minimax-api-key" # Your MiniMax API key
group_id = "your-group-id" # Your MiniMax Group ID (optional)
default_model = "MiniMax-M2.5" # Default model (MiniMax-M2.1 or MiniMax-M2.5)
# Additional OpenAI-compatible providers
# [[providers.compatible]]
# api_key = "..."
# base_url = "https://api.together.xyz/v1"
# default_model = "meta-llama/Llama-3-70b-chat-hf"
# ── Memory ───────────────────────────────────────────────────────────────────
[memory]
db_path = "memory.db" # SQLite database path (relative to data_dir)
enable_vector_search = true # Enable semantic search via embeddings
# embedding_provider = "openai" # Provider for generating embeddings
# embedding_model = "text-embedding-3-small"
# ── Gateway ──────────────────────────────────────────────────────────────────
[gateway]
host = "127.0.0.1" # Bind address
port = 8080 # HTTP port
enable_ui = true # Serve the web UI
# api_key = "your-gateway-api-key" # Protect the gateway API
# ── Channels ─────────────────────────────────────────────────────────────────
[channels.telegram]
bot_token = "123456:ABC..." # Telegram bot token from @BotFather
allowed_users = ["your_user_id"] # Restrict to specific user IDs
use_webhook = false # true = webhook mode, false = polling
[channels.discord]
bot_token = "your-discord-bot-token"
allowed_guilds = [] # Empty = allow all guilds
[channels.slack]
bot_token = "xoxb-..."
app_token = "xapp-..."
signing_secret = "..."
# ── Security ─────────────────────────────────────────────────────────────────
[security]
sandbox_enabled = true # Restrict command execution
allowed_commands = ["ls", "cat", "grep", "find", "echo", "date"]
allowed_paths = [] # Restrict file access (empty = no restriction)
# pairing_secret = "..." # Secret for node pairing
# ── Heartbeat ────────────────────────────────────────────────────────────────
[heartbeat]
enabled = true
interval_seconds = 1800 # 30 minutes
prompt = "Read HEARTBEAT.md if it exists. If nothing needs attention, reply HEARTBEAT_OK."
# ── Tunnel ───────────────────────────────────────────────────────────────────
[tunnel]
# provider = "cloudflared" # Tunnel provider
# token = "..." # Auth token
# domain = "clawsharp.example.com" # Custom domain