Repository navigation
Expand file tree
/
Copy path.env.container.example
More file actions
51 lines (45 loc) · 2.19 KB
/
Copy path.env.container.example
File metadata and controls
51 lines (45 loc) · 2.19 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
# =============================================================================
# OpenCode Docker Container Environment (.env.container)
# Copy this file to .env.container and populate your configuration:
# cp .env.container.example .env.container
#
# SECURITY NOTICE:
# Variables in this file are passed into the Docker container via
# 'docker run --env-file .env.container'.
#
# Host secrets (such as GH_APP_ID and app.pem) belong exclusively in .env
# and should NEVER be added to this file.
#
# NOTE ON AGENT ISOLATION:
# .env.container isolates secrets from your host system. However, the agent
# running inside the container can inspect its own environment. For zero-trust
# environments where master secrets are hidden from the agent itself, use
# OPTION B below with the Bifrost Gateway (see bifrost/README.md).
# =============================================================================
# =============================================================================
# OPTION A: NATIVE DIRECT CREDENTIALS (Default / Fast Setup)
# Pass your API keys directly into the container.
# =============================================================================
# LLM Provider API Keys
# ANTHROPIC_API_KEY="sk-ant-..."
# OPENAI_API_KEY="sk-..."
# GEMINI_API_KEY="AIzaSy..."
# OPENROUTER_API_KEY="sk-or-..."
# DEEPSEEK_API_KEY="sk-..."
# GROQ_API_KEY="gsk_..."
# MISTRAL_API_KEY="..."
# Local or custom LLM endpoints (e.g. Ollama running on host)
# OLLAMA_API_BASE="http://host.docker.internal:11434"
# Model Context Protocol (MCP) & Tool Credentials
# BRAVE_API_KEY="BSA..."
# TAVILY_API_KEY="tvly-..."
# DATABASE_URL="postgresql://user:password@localhost:5432/mydb"
# POSTGRES_URL="postgresql://user:password@localhost:5432/mydb"
# =============================================================================
# OPTION B: HARDENED BIFROST GATEWAY MODE (Zero-Secret Sandbox)
# Comment out Option A above. Real master keys live in bifrost/.env.bifrost.
# Start gateway: 'ocd gateway start'
# =============================================================================
# OPENAI_API_BASE="http://host.docker.internal:8321/v1"
# OPENAI_API_KEY="bf_virtual_key_sandbox"
# ANTHROPIC_BASE_URL="http://host.docker.internal:8321/v1"