-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
72 lines (57 loc) · 3.63 KB
/
.env.example
File metadata and controls
72 lines (57 loc) · 3.63 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
# AgentLink Environment Configuration Template
# Copy this to .env and fill in values for local development.
# Never commit .env — it is in .gitignore.
#
# Local runtime state (keys, logs, cache, artifacts) lives in ~/.agentlink/
# and is never stored in source control.
# ─────────────────────────────────────────────
# Control Plane API (apps/api)
# ─────────────────────────────────────────────
API_HOST=0.0.0.0
API_PORT=8000
API_ENV=development
# Secret used to sign session tokens — MUST change in production.
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(48))"
API_SECRET_KEY=replace-with-a-long-random-secret
# Shared operator API key — all operators present this key to log in.
# MUST change in production.
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(32))"
OPERATOR_API_KEY=replace-with-operator-key
# Operator session token lifetime (hours). Default: 8
# OPERATOR_TOKEN_EXPIRE_HOURS=8
# Auth posture for read endpoints.
# true (default/production): all list/detail endpoints require operator JWT.
# false (demo mode): endpoints are publicly readable without auth.
# Set to false for open demo setups or local development.
REQUIRE_AUTH_FOR_READS=false
# ─────────────────────────────────────────────
# Database (apps/api)
# ─────────────────────────────────────────────
# Use the async driver matching your database:
# PostgreSQL: postgresql+asyncpg://user:pass@host:5432/dbname
# SQLite (dev only): sqlite+aiosqlite:///./agentlink.db
DATABASE_URL=postgresql+asyncpg://agentlink:agentlink@localhost:5432/agentlink_dev
# ─────────────────────────────────────────────
# Redis (presence, queues, transient state)
# ─────────────────────────────────────────────
REDIS_URL=redis://localhost:6379/0
# ─────────────────────────────────────────────
# Node Daemon (apps/node)
# ─────────────────────────────────────────────
# URL of the control plane API this node registers with
NODE_CONTROL_PLANE_URL=http://localhost:8000
# Local config directory — defaults to ~/.agentlink if not set
# NODE_CONFIG_DIR=~/.agentlink
# Node environment (development | production)
NODE_ENV=development
# ─────────────────────────────────────────────
# Web Dashboard (apps/web)
# ─────────────────────────────────────────────
NEXT_PUBLIC_API_URL=http://localhost:8000
# ─────────────────────────────────────────────
# Adapters
# ─────────────────────────────────────────────
# OpenClaw adapter — base URL of the local OpenClaw runtime
# OPENCLAW_BASE_URL=http://localhost:8080
# Generic REST adapter — set per-integration in adapter config
# GENERIC_REST_ADAPTER_BASE_URL=