aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md31
1 files changed, 26 insertions, 5 deletions
diff --git a/README.md b/README.md
index 58eca18..00c8d1d 100644
--- a/README.md
+++ b/README.md
@@ -55,11 +55,32 @@ export OPENCODE_API_KEY=... # or write it to ~/.config/agent686/key
55./agent686 --yolo "..." # approve every tool call 55./agent686 --yolo "..." # approve every tool call
56``` 56```
57 57
58Provider is OpenCode Go, `chat/completions`, model `deepseek-v4.1-flash` by 58The provider is a *type* plus a URL, both speaking OpenAI-compatible chat
59default; `--provider ollama|openai|openrouter|vllm|llamacpp` switches to another 59completions:
60OpenAI-compatible endpoint, with `--lenient` for servers that omit `[DONE]`. 60
61`HTTPS_PROXY`/`NO_PROXY` are honoured. Every request carries a stable 61- `opencode` (default) — `https://opencode.ai/inference/go/openai/v1`, and it
62`x-opencode-session` header, which the service uses for routing and prompt caching. 62 requires a stable `x-opencode-session` header per conversation.
63- `openai-compatible` — any endpoint (Ollama, llama.cpp, vLLM, OpenRouter, …),
64 given via `--base-url`/`AGENT686_BASE_URL`/config `url`; no session header.
65
66`--lenient` tolerates servers that omit `[DONE]`/`usage`; `HTTPS_PROXY`/`NO_PROXY`
67are honoured.
68
69## Config file
70
71`~/.config/agent686/config.toml` (override with `AGENT686_CONFIG`) sets defaults
72the CLI and environment can then override:
73
74```toml
75provider = "opencode" # or "openai-compatible"
76url = "http://localhost:11434/v1" # for openai-compatible
77model = "deepseek-v4.1-flash"
78lenient = false
79system_ca = false
80yolo = false
81allow_home = false # permit --yolo in $HOME or /
82allow_nogit = false # permit --yolo outside a git repository
83```
63 84
64In a terminal: up/down walks history, bracketed paste arrives as one block 85In a terminal: up/down walks history, bracketed paste arrives as one block
65(multi-line is fine), ctrl-c abandons the line, ctrl-d exits. `/undo` reverts the 86(multi-line is fine), ctrl-c abandons the line, ctrl-d exits. `/undo` reverts the