-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathconfig.sample.yml
More file actions
154 lines (141 loc) · 4.77 KB
/
Copy pathconfig.sample.yml
File metadata and controls
154 lines (141 loc) · 4.77 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# yaml-language-server: $schema=./schemas/core-schemas/config.json
# Leon profile configuration.
# This file stores non-secret profile settings. Keep actual secret values in
# your profile .env file, then reference them here with an `env` property.
language: en-US
server:
host: http://localhost
port: 5366
routing:
# Routing mode: smart | controlled | agent
mode: smart
llm:
# Use null to leave the global LLM target unset.
# Set to "<provider>/<model>" to use a provider/model pair.
# Examples:
# default: openai/gpt-5.6-sol
# default: openrouter/z-ai/glm-5.2
# default: llamacpp/Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q4_K_M.gguf
# default: sglang/Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q4_K_M.gguf
# default: /absolute/path/model.gguf
default: null
# Optional per-mode overrides. Null values fall back to llm.default.
workflow: null
agent: null
providers:
llamacpp:
base_url: http://127.0.0.1:8080/v1
api_key:
# The value is read from LEON_LLAMACPP_API_KEY in your profile .env file.
env: LEON_LLAMACPP_API_KEY
sglang:
base_url: http://127.0.0.1:30000/v1
api_key:
# The value is read from LEON_SGLANG_API_KEY in your profile .env file.
env: LEON_SGLANG_API_KEY
openrouter:
api_key:
# The value is read from LEON_OPENROUTER_API_KEY in your profile .env file.
env: LEON_OPENROUTER_API_KEY
zai:
api_key:
# The value is read from LEON_ZAI_API_KEY in your profile .env file.
env: LEON_ZAI_API_KEY
minimax:
api_key:
# The value is read from LEON_MINIMAX_API_KEY in your profile .env file.
env: LEON_MINIMAX_API_KEY
openai:
api_key:
# The value is read from LEON_OPENAI_API_KEY in your profile .env file.
env: LEON_OPENAI_API_KEY
anthropic:
api_key:
# The value is read from LEON_ANTHROPIC_API_KEY in your profile .env file.
env: LEON_ANTHROPIC_API_KEY
moonshotai:
api_key:
# The value is read from LEON_MOONSHOTAI_API_KEY in your profile .env file.
env: LEON_MOONSHOTAI_API_KEY
huggingface:
api_key:
# The value is read from LEON_HUGGINGFACE_API_KEY in your profile .env file.
env: LEON_HUGGINGFACE_API_KEY
cerebras:
api_key:
# The value is read from LEON_CEREBRAS_API_KEY in your profile .env file.
env: LEON_CEREBRAS_API_KEY
groq:
api_key:
# The value is read from LEON_GROQ_API_KEY in your profile .env file.
env: LEON_GROQ_API_KEY
mood:
# Mood mode: auto | default | tired | cocky | sad | angry
mode: auto
runtime:
# Enable Leon's autonomous pulse mechanism.
pulse_enabled: true
# Enable Leon's private diary/self-model mechanism.
private_diary_enabled: true
context:
# Context files to disable. Use ["*"] to disable all context files, including
# context files added by future Leon versions.
disabled_files: []
availability:
skills:
# When this list contains at least one skill, only these skills are enabled.
allowed: []
# Used only when allowed is empty.
disabled: []
tools:
# When this list contains at least one tool, only these tools are enabled.
allowed: []
# Used only when allowed is empty.
disabled: []
python_tcp_server:
host: 127.0.0.1
port: 5367
voice:
wake_word_enabled: false
asr:
enabled: false
provider: local
tts:
enabled: false
provider: local
time_zone: null
after_speech_enabled: false
telemetry_enabled: true
client_interface:
# Extra origins allowed to connect to Leon from browser-like clients.
# Same-origin clients and the built-in web app dev server are allowed automatically.
# Examples:
# - http://localhost:1420 # Tauri dev server
# - http://localhost:5173 # Vite/Electron dev server
# - https://desktop.example.com # Remote browser-like client
allowed_origins: []
auth:
# Enable this when exposing Leon to clients outside your local machine.
enabled: false
token:
# The value is read from LEON_CLIENT_INTERFACE_TOKEN in your profile .env file.
env: LEON_CLIENT_INTERFACE_TOKEN
http_plugins:
# Enable this to let HTTP plugins expose integration-specific routes.
enabled: false
# Root routes are disabled unless both this global
# flag and the individual plugin root_routes flag are true.
allow_root_routes: false
auth:
# Enable this when exposing HTTP plugins beyond trusted local development.
enabled: false
token:
# The value is read from LEON_HTTP_PLUGIN_TOKEN in your profile .env file.
env: LEON_HTTP_PLUGIN_TOKEN
plugins:
# External plugins are discovered from:
# ~/.leon/http-plugins/<plugin-id>/
# ~/.leon/profiles/<profile-id>/http-plugins/<plugin-id>/
# example_my_plugin:
# enabled: false
# root_routes: false