-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
85 lines (71 loc) · 3.78 KB
/
.env.example
File metadata and controls
85 lines (71 loc) · 3.78 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
# ╔══════════════════════════════════════════════╗
# ║ TokioAI v2.0 — Configuration Template ║
# ╚══════════════════════════════════════════════╝
#
# Copy to .env and fill in your values:
# cp .env.example .env
#
# Or run the setup wizard:
# tokio setup
# ── LLM Provider (REQUIRED) ──────────────────────────────────────────
# Choose one: anthropic, openai, or gemini
LLM_PROVIDER=anthropic
# Anthropic Claude (recommended)
ANTHROPIC_API_KEY=
CLAUDE_MODEL=claude-sonnet-4-20250514
# OpenAI GPT (alternative)
# OPENAI_API_KEY=
# OPENAI_MODEL=gpt-4o
# Google Gemini (alternative)
# GEMINI_API_KEY=
# GEMINI_MODEL=gemini-2.0-flash
# ── Anthropic via Vertex AI (advanced) ────────────────────────────────
# Use this instead of ANTHROPIC_API_KEY if you want Claude via GCP.
# Requires a GCP service account with Vertex AI permissions.
# USE_ANTHROPIC_VERTEX=true
# GCP_PROJECT_ID=your-gcp-project
# GOOGLE_APPLICATION_CREDENTIALS=/path/to/gcp-sa-key.json
# ANTHROPIC_VERTEX_REGION=us-east5
# ── PostgreSQL (REQUIRED) ────────────────────────────────────────────
# Used for session memory, workspace, and prompt guard audit log.
# If using Docker Compose, leave POSTGRES_HOST=postgres (the container name).
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=tokio
POSTGRES_USER=tokio
POSTGRES_PASSWORD=changeme
# ── Telegram Bot (optional) ──────────────────────────────────────────
# 1. Create a bot with @BotFather on Telegram
# 2. Get your user_id by sending /start to @userinfobot
# TELEGRAM_BOT_TOKEN=
# TELEGRAM_OWNER_ID=
# TELEGRAM_ALLOWED_IDS=
# ── Host Control via SSH (optional) ──────────────────────────────────
# Control a remote server via SSH commands
# HOST_SSH_HOST=192.168.1.100
# HOST_SSH_USER=pi
# HOST_SSH_PORT=22
# HOST_SSH_KEY_PATH=~/.ssh/id_rsa
# ── IoT / Home Assistant (optional) ──────────────────────────────────
# HOME_ASSISTANT_URL=http://192.168.1.100:8123
# HOME_ASSISTANT_TOKEN=
# ── Router (optional) ────────────────────────────────────────────────
# ROUTER_HOST=192.168.1.1
# ROUTER_USER=root
# ROUTER_SSH_KEY_PATH=~/.ssh/id_rsa
# ── Cloudflare (optional) ────────────────────────────────────────────
# CLOUDFLARE_API_TOKEN=
# CLOUDFLARE_ACCOUNT_ID=
# CLOUDFLARED_TUNNEL_TOKEN=
# ── Hostinger DNS (optional) ─────────────────────────────────────────
# HOSTINGER_API_TOKEN=
# ── GCP WAF (optional) ───────────────────────────────────────────────
# GCP_PROJECT_ID=
# GCP_INSTANCE_NAME=
# GCP_ZONE=us-central1-a
# GCP_SA_KEY_JSON=/path/to/gcp-sa-key.json
# ── Server Settings ──────────────────────────────────────────────────
TOKIO_PORT=8000
CORS_ORIGINS=http://localhost:3000,http://localhost:8080
# TOKIO_API_KEY=your-secret-api-key
# TOKIO_RATE_LIMIT=60