From 055e2f381656d6490a948c0443df944907eaf7b4 Mon Sep 17 00:00:00 2001 From: Harvey Mackie Date: Fri, 20 Mar 2026 16:10:37 +0000 Subject: [PATCH] docs: add github copilot oauth channel setup instructions --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 9f23e15..a62da82 100644 --- a/README.md +++ b/README.md @@ -843,6 +843,43 @@ nanobot agent -c ~/.nanobot-telegram/config.json -w /tmp/nanobot-telegram-test - + +
+Github Copilot (OAuth) + +Github Copilot uses OAuth instead of API keys. Requires a [Github account with a plan](https://github.com/features/copilot/plans) configured. + +**1. Login:** +```bash +nanobot provider login github_copilot +``` + +**2. Set model** (merge into `~/.nanobot/config.json`): +```json +{ + "agents": { + "defaults": { + "model": "github-copilot/gpt-4.1" + } + } +} +``` + +**3. Chat:** +```bash +nanobot agent -m "Hello!" + +# Target a specific workspace/config locally +nanobot agent -c ~/.nanobot-telegram/config.json -m "Hello!" + +# One-off workspace override on top of that config +nanobot agent -c ~/.nanobot-telegram/config.json -w /tmp/nanobot-telegram-test -m "Hello!" +``` + +> Docker users: use `docker run -it` for interactive OAuth login. + +
+
Custom Provider (Any OpenAI-compatible API)