Skip to content

Commit b9117b1

Browse files
Skiipy11claude
andcommitted
docs: document per-agent API keys and rate limiting in .env.example
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fb159a3 commit b9117b1

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.env.example

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
# Shared Brain Configuration
22

33
# --- Required ---
4-
BRAIN_API_KEY=your-api-key-here
4+
BRAIN_API_KEY=your-admin-api-key-here
55
PORT=8084
66
# HOST=0.0.0.0 # Default: 127.0.0.1 (localhost only). Set to 0.0.0.0 for LAN/Docker access.
77

8+
# --- Per-Agent API Keys (optional, recommended) ---
9+
# Each agent gets its own key. The key name maps to the agent identity:
10+
# AGENT_KEY_<name> → agent authenticates as "<name>" (underscores become hyphens)
11+
# When using an agent key, source_agent must match the authenticated identity.
12+
# BRAIN_API_KEY remains as admin/fallback (no identity binding).
13+
# Generate keys with: openssl rand -hex 32
14+
# AGENT_KEY_claude_code=your-key-here
15+
# AGENT_KEY_n8n=your-key-here
16+
# AGENT_KEY_morpheus=your-key-here
17+
18+
# --- Rate Limiting ---
19+
# RATE_LIMIT_WRITES=60 # Max write requests per minute per key (default: 60)
20+
# RATE_LIMIT_READS=120 # Max read requests per minute per key (default: 120)
21+
822
# --- Qdrant (vector store — always required) ---
923
QDRANT_URL=http://qdrant:6333
1024
QDRANT_API_KEY=your-qdrant-key-here

0 commit comments

Comments
 (0)