Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
refactor: use is_oauth flag instead of hardcoded provider name check
Re-binf5c5b13ff033
diff --git a/README.md b/README.mdindex de517d73f..0e20449ef 100644--- a/README.md+++ b/README.md@@ -145,19 +145,19 @@ That's it! You have a working AI assistant in 2 minutes.## 💬 Chat Apps-Talk to your nanobot through Telegram, Discord, WhatsApp, Feishu, Mochat, DingTalk, Slack, Email, or QQ — anytime, anywhere.--| Channel | Setup |-|---------|-------|-| **Telegram** | Easy (just a token) |-| **Discord** | Easy (bot token + intents) |-| **WhatsApp** | Medium (scan QR) |-| **Feishu** | Medium (app credentials) |-| **Mochat** | Medium (claw token + websocket) |-| **DingTalk** | Medium (app credentials) |-| **Slack** | Medium (bot + app tokens) |-| **Email** | Medium (IMAP/SMTP credentials) |-| **QQ** | Easy (app credentials) |+Connect nanobot to your favorite chat platform.++| Channel | What you need |+|---------|---------------|+| **Telegram** | Bot token from @BotFather |+| **Discord** | Bot token + Message Content intent |+| **WhatsApp** | QR code scan |+| **Feishu** | App ID + App Secret |+| **Mochat** | Claw token (auto-setup available) |+| **DingTalk** | App Key + App Secret |+| **Slack** | Bot token + App-Level token |+| **Email** | IMAP/SMTP credentials |+| **QQ** | App ID + App Secret |<details><summary><b>Telegram</b> (Recommended)</summary>@@ -588,6 +588,7 @@ Config file: `~/.nanobot/config.json`| `zhipu` | LLM (Zhipu GLM) | [open.bigmodel.cn](https://open.bigmodel.cn) || `vllm` | LLM (local, any OpenAI-compatible server) | — || `openai_codex` | LLM (Codex, OAuth) | `nanobot provider login openai-codex` |+| `github_copilot` | LLM (GitHub Copilot, OAuth) | Requires [GitHub Copilot](https://github.com/features/copilot) subscription |<details><summary><b>OpenAI Codex (OAuth)</b></summary>diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.pyindex a24929f7d..b61d9aaae 100644--- a/nanobot/cli/commands.py+++ b/nanobot/cli/commands.py@@ -292,7 +292,9 @@ def _make_provider(config: Config):if provider_name == "openai_codex" or model.startswith("openai-codex/"):return OpenAICodexProvider(default_model=model)- if not model.startswith("bedrock/") and not (p and p.api_key) and provider_name != "github_copilot":+ from nanobot.providers.registry import find_by_name+ spec = find_by_name(provider_name)+ if not model.startswith("bedrock/") and not (p and p.api_key) and not (spec and spec.is_oauth):console.print("[red]Error: No API key configured.[/red]")console.print("Set one in ~/.nanobot/config.json under providers section")raise typer.Exit(1)