Files
agent/.env.example
highperfocused f03c96f964
Some checks failed
Build and Push Docker Image / build (push) Failing after 22s
moa agent
2026-03-11 23:21:57 +01:00

72 lines
4.1 KiB
Plaintext

# ── Ollama (local / self-hosted) ────────────────────────────────────────────────
# To use a local Ollama instance, override PROVIDER and MODEL:
# PROVIDER=ollama
# MODEL=llama3.2 # or qwen2.5-coder, mistral, deepseek-r1:14b …
# No API key is needed.
#
# Docker: Ollama must listen on 0.0.0.0 (not just 127.0.0.1).
# OLLAMA_HOST=0.0.0.0 ollama serve
# The default OLLAMA_BASE_URL uses host.docker.internal which maps to your
# host machine from inside a Docker container.
# On Linux: enable extra_hosts in compose.yaml (already included).
# Locally (no Docker): change to http://localhost:11434/v1
#
# OLLAMA_BASE_URL=http://host.docker.internal:11434/v1
# OLLAMA_CONTEXT_WINDOW=32768 # tokens passed as num_ctx
# OLLAMA_MAX_TOKENS=8192
# ── Model ────────────────────────────────────────────────────────────────────
# Provider and model to use. Both must be set together.
# Available providers: anthropic, openai, google, mistral, groq, cerebras,
# xai, openrouter, azure-openai, amazon-bedrock, …
PROVIDER=anthropic
MODEL=claude-sonnet-4-20250514
# ── Authentication ────────────────────────────────────────────────────────────
# Generic API key for the selected PROVIDER (injected at runtime, not stored).
API_KEY=sk-ant-...
# Provider-specific keys are also honoured (pick one approach):
# ANTHROPIC_API_KEY=sk-ant-...
# OPENAI_API_KEY=sk-...
# GEMINI_API_KEY=...
# MISTRAL_API_KEY=...
# GROQ_API_KEY=...
# CEREBRAS_API_KEY=...
# XAI_API_KEY=...
# OPENROUTER_API_KEY=...
# ── Prompt ────────────────────────────────────────────────────────────────────
# The user message to send. Alternatively pipe via stdin.
PROMPT=List all .ts files in the current directory.
# ── System prompt ─────────────────────────────────────────────────────────────
# Completely replaces the default system prompt (optional).
# SYSTEM_PROMPT=You are a helpful assistant. Work inside /app only.
# Appended to the (possibly overridden) system prompt (optional).
# APPEND_SYSTEM_PROMPT=Always answer in English.
# ── Thinking ──────────────────────────────────────────────────────────────────
# off | minimal | low | medium | high | xhigh (default: off)
THINKING_LEVEL=off
# ── Tools ─────────────────────────────────────────────────────────────────────
# all → read, bash, edit, write (default)
# readonly → read only
# none → no built-in tools
# Or a comma-separated list: read,bash
TOOLS=all
# ── Working directory ─────────────────────────────────────────────────────────
# Directory the agent reads/writes. Maps to the Docker volume mount point.
CWD=/app
# ── Session persistence ───────────────────────────────────────────────────────
# true → persist session files under CWD; false/unset → in-memory (default)
SESSION_PERSIST=false
# ── Verbose tool logging ──────────────────────────────────────────────────────
# true → log tool start/end events to stderr
VERBOSE_TOOLS=false