You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> chmod 600 ~/.hermes/.env # Restrict access to your user only
374
374
> ```
375
375
>
376
-
>**Important:** Always run `chmod 600 ~/.hermes/.env` to prevent other users on the system from reading your API keys.
376
+
>**Avoid using `echo` to append secrets** — the command (including the key) is saved in your shell history (`~/.bash_history`). Use an editor or `hermes auth` instead. Always run `chmod 600 ~/.hermes/.env` to prevent other users on the system from reading your API keys.
377
377
378
378
### 3. Configure Toolsets
379
379
@@ -524,6 +524,11 @@ Everything lives under `~/.hermes/`:
524
524
525
525
> **Important:** `SOUL.md` is injected into every message. Keep it under 1 KB. Every byte costs latency and tokens.
526
526
527
+
> **Security:** The `.env` file contains your API keys. Restrict its permissions so only you can read it:
528
+
> ```bash
529
+
> chmod 600 ~/.hermes/.env
530
+
>```
531
+
527
532
---
528
533
529
534
## Verify Your Setup
@@ -856,7 +861,7 @@ The server starts on `http://localhost:9623` with:
856
861
- **Web UI** at `http://localhost:9623/webui`for browsing the knowledge graph
857
862
- **Health check** at `http://localhost:9623/health`
858
863
859
-
>**Security warning:** The LightRAG REST API has **no built-in authentication**. Always bind to `127.0.0.1` (localhost only) — never `0.0.0.0`. If you need remote access, put it behind a reverse proxy (nginx, Caddy) with authentication, or use SSH tunneling. Anyone who can reach this port can query, ingest, or delete your knowledge graph data.
864
+
>**Security warning:** The LightRAG REST API has **no built-in authentication**. Always bind to `127.0.0.1` (localhost only) — never `0.0.0.0`. If you need remote access, put it behind a reverse proxy (nginx, Caddy) with authentication, or use SSH tunneling / Tailscale / WireGuard. Anyone who can reach this port can query, ingest, or delete your entire knowledge graph.
860
865
861
866
### Run as a Background Service
862
867
@@ -1402,7 +1407,7 @@ Each user gets their own conversation session. The bot tracks sessions per user
1402
1407
1403
1408
### Bot not responding
1404
1409
1405
-
1. Check the token is correct: `echo $TELEGRAM_BOT_TOKEN`
1410
+
1. Check the token is set (without printing it in full): `echo ${TELEGRAM_BOT_TOKEN:0:10}...`
1406
1411
2. Verify the gateway is running: `hermes gateway status`
> chmod 600 ~/.hermes/.env # Restrict access to your user only
89
89
>```
90
90
>
91
-
>**Important:** Always run `chmod 600 ~/.hermes/.env` to prevent other users on the system from reading your API keys.
91
+
>**Avoid using `echo` to append secrets** — the command (including the key) is saved in your shell history (`~/.bash_history`). Use an editor or `hermes auth` instead. Always run `chmod 600 ~/.hermes/.env` to prevent other users on the system from reading your API keys.
92
92
93
93
### 3. Configure Toolsets
94
94
@@ -168,6 +168,11 @@ Everything lives under `~/.hermes/`:
168
168
169
169
> **Important:**`SOUL.md` is injected into every message. Keep it under 1 KB. Every byte costs latency and tokens.
170
170
171
+
> **Security:** The `.env` file contains your API keys. Restrict its permissions so only you can read it:
Copy file name to clipboardExpand all lines: part3-lightrag-setup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ The server starts on `http://localhost:9623` with:
110
110
-**Web UI** at `http://localhost:9623/webui` for browsing the knowledge graph
111
111
-**Health check** at `http://localhost:9623/health`
112
112
113
-
> **Security warning:** The LightRAG REST API has **no built-in authentication**. Always bind to `127.0.0.1` (localhost only) — never `0.0.0.0`. If you need remote access, put it behind a reverse proxy (nginx, Caddy) with authentication, or use SSH tunneling. Anyone who can reach this port can query, ingest, or delete your knowledge graph data.
113
+
> **Security warning:** The LightRAG REST API has **no built-in authentication**. Always bind to `127.0.0.1` (localhost only) — never `0.0.0.0`. If you need remote access, put it behind a reverse proxy (nginx, Caddy) with authentication, or use SSH tunneling / Tailscale / WireGuard. Anyone who can reach this port can query, ingest, or delete your entire knowledge graph.
Copy file name to clipboardExpand all lines: part9-custom-models.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,14 +154,20 @@ tts:
154
154
155
155
Models are configured in `~/.hermes/config.yaml`:
156
156
157
-
> **Security note:** Never put real API keys directly in `config.yaml`. Use environment variable references so keys stay in `~/.hermes/.env` (which should be `chmod 600` and never committed to git).
158
-
157
+
> **Security note:** Never put real API keys directly in `config.yaml`. Use environment variable references so keys stay in `~/.hermes/.env` (which should be `chmod 600` and never committed to git). You can also use `hermes auth` to set them securely.
159
158
```yaml
160
159
# Default model
161
160
model: claude-sonnet-5
162
161
provider: anthropic
163
162
164
163
# Provider configurations
164
+
# API keys are loaded from ~/.hermes/.env automatically.
165
+
# Set them with: hermes auth
166
+
# Or add to ~/.hermes/.env:
167
+
# ANTHROPIC_API_KEY=sk-ant-...
168
+
# OPENAI_API_KEY=sk-...
169
+
# CEREBRAS_API_KEY=csk-...
170
+
# FIREWORKS_API_KEY=fw_...
165
171
providers:
166
172
anthropic:
167
173
api_key: ${ANTHROPIC_API_KEY}
@@ -226,6 +232,8 @@ providers:
226
232
Any provider that implements the OpenAI chat completions API works:
227
233
228
234
```yaml
235
+
# Add your API key to ~/.hermes/.env:
236
+
# MY_CUSTOM_API_KEY=your-key-here
229
237
providers:
230
238
my-custom:
231
239
api_key: ${MY_CUSTOM_API_KEY}
@@ -312,6 +320,7 @@ Cerebras is fast but has quirks:
0 commit comments