File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,17 +52,21 @@ cargo:
5252security:
5353 # API Key authentication
5454 #
55- # Bay supports two modes for API key configuration:
55+ # Bay supports three modes for API key configuration:
5656 #
5757 # 1. Auto-generation (default, recommended):
5858 # On first boot, Bay will:
5959 # - Auto-generate a key (sk-bay-...) and store its hash in the DB
6060 # - Write credentials.json for companion services (e.g., AstrBot)
6161 # Subsequent restarts will reuse the existing key from DB.
6262 #
63- # 2. Environment variable override:
63+ # 2. Config file: set `api_key` below to a fixed key.
64+ # Seeds the key to DB on startup. credentials.json is NOT written
65+ # (you already know the key — configure companion services manually).
66+ #
67+ # 3. Environment variable override:
6468 # Set BAY_API_KEY=sk-bay-your-key to inject a specific key.
65- # This seeds the key to DB on startup.
69+ # Seeds the key to DB on startup. credentials.json is NOT written .
6670
6771 # Allow anonymous access (no authentication required)
6872 # Development: true (default) - allows unauthenticated requests
You can’t perform that action at this time.
0 commit comments