From 4d5b584e39cf90a4afaab8af46be2f69dcd914b6 Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 19 Nov 2026 11:30:47 +0100 Subject: 0.12.0: provider is a type + URL, plus a config file - --provider opencode|openai-compatible; opencode keeps the session header, openai-compatible needs a base URL and sends none - config file at ~/.config/agent686/config.toml (provider, url, model, flags) - fix the doubled-dash --provider help message --- README.md | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'README.md') 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 ./agent686 --yolo "..." # approve every tool call ``` -Provider is OpenCode Go, `chat/completions`, model `deepseek-v4.1-flash` by -default; `--provider ollama|openai|openrouter|vllm|llamacpp` switches to another -OpenAI-compatible endpoint, with `--lenient` for servers that omit `[DONE]`. -`HTTPS_PROXY`/`NO_PROXY` are honoured. Every request carries a stable -`x-opencode-session` header, which the service uses for routing and prompt caching. +The provider is a *type* plus a URL, both speaking OpenAI-compatible chat +completions: + +- `opencode` (default) — `https://opencode.ai/inference/go/openai/v1`, and it + requires a stable `x-opencode-session` header per conversation. +- `openai-compatible` — any endpoint (Ollama, llama.cpp, vLLM, OpenRouter, …), + given via `--base-url`/`AGENT686_BASE_URL`/config `url`; no session header. + +`--lenient` tolerates servers that omit `[DONE]`/`usage`; `HTTPS_PROXY`/`NO_PROXY` +are honoured. + +## Config file + +`~/.config/agent686/config.toml` (override with `AGENT686_CONFIG`) sets defaults +the CLI and environment can then override: + +```toml +provider = "opencode" # or "openai-compatible" +url = "http://localhost:11434/v1" # for openai-compatible +model = "deepseek-v4.1-flash" +lenient = false +system_ca = false +yolo = false +allow_home = false # permit --yolo in $HOME or / +allow_nogit = false # permit --yolo outside a git repository +``` In a terminal: up/down walks history, bracketed paste arrives as one block (multi-line is fine), ctrl-c abandons the line, ctrl-d exits. `/undo` reverts the -- cgit v1.2.3