-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.env.example
More file actions
88 lines (71 loc) · 2.73 KB
/
Copy path.env.example
File metadata and controls
88 lines (71 loc) · 2.73 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
86
87
88
# =============================================================================
# MiniCode Python — Environment Variables
# =============================================================================
# Copy this to .env and fill in your values:
# cp .env.example .env
# =============================================================================
# --- Required (at least one API key) ---
# Anthropic
ANTHROPIC_API_KEY=sk-ant-...
# Or use auth token instead:
# ANTHROPIC_AUTH_TOKEN=
# OpenAI
# OPENAI_API_KEY=sk-...
# OpenRouter (access to 200+ models)
# OPENROUTER_API_KEY=sk-or-...
# Custom OpenAI-compatible endpoint (vLLM, Ollama, LiteLLM, etc.)
# CUSTOM_API_KEY=...
# CUSTOM_API_BASE_URL=http://localhost:11434/v1
# --- Model ---
# Anthropic models
ANTHROPIC_MODEL=claude-sonnet-4-20250514
# ANTHROPIC_BASE_URL=https://api.anthropic.com
# OpenAI models (set this to use GPT models):
# ANTHROPIC_MODEL=gpt-4o
# OpenRouter models (set OPENROUTER_API_KEY first):
# ANTHROPIC_MODEL=anthropic/claude-sonnet-4
# ANTHROPIC_MODEL=openai/gpt-4o
# ANTHROPIC_MODEL=google/gemini-2.5-pro
# ANTHROPIC_MODEL=deepseek/deepseek-r1
# ANTHROPIC_MODEL=meta-llama/llama-4-maverick
# ANTHROPIC_MODEL=openrouter/auto
# Custom endpoint models:
# ANTHROPIC_MODEL=my-custom-model
# CUSTOM_API_BASE_URL=http://localhost:11434/v1
# --- Logging ---
MINI_CODE_LOG_LEVEL=WARNING
# Options: DEBUG, INFO, WARNING, ERROR
# --- Command output encoding ---
# Encoding used to decode run_command output. Defaults to utf-8.
# On Chinese Windows, set to cp936 (or gbk) so legacy commands that output in
# the OEM code page (dir, systeminfo, batch scripts printing CJK) decode
# correctly instead of mojibake. Pick whichever matches the majority of your
# commands; a single value can't cover mixed utf-8 + cp936 output perfectly.
# MINI_CODE_COMMAND_ENCODING=cp936
# --- Workspace (for Docker) ---
MINI_CODE_WORKSPACE=.
# --- Gateway mode ---
# MINI_CODE_GATEWAY=1
MINI_CODE_GATEWAY_PORT=8080
MINI_CODE_GATEWAY_HOST=0.0.0.0
# --- Platform tokens (for gateway multi-platform) ---
# TELEGRAM_BOT_TOKEN=
# DISCORD_BOT_TOKEN=
# SLACK_BOT_TOKEN=
# --- Cron ---
# MINI_CODE_CRON_CONFIG=./.mini-code/cron.json
# --- OpenRouter settings ---
# OPENROUTER_BASE_URL=https://openrouter.ai/api
# OPENROUTER_REFERER=https://github.com/minicode-py
# OPENROUTER_TITLE=MiniCode Python
# OPENROUTER_TRANSFORMS=
# --- Custom endpoint settings ---
# CUSTOM_API_BASE_URL=http://localhost:11434/v1
# CUSTOM_API_KEY=
# CUSTOM_API_EXTRA_HEADERS=X-Custom-Header:value
# --- User Profile ---
# Set response language and verbosity (also configurable via USER.md)
# MINI_CODE_LANGUAGE=zh-CN
# MINI_CODE_VERBOSITY=normal
# Options for VERBOSITY: concise, normal, detailed
# Create ~/.mini-code/USER.md for full profile customization