最新资讯
dev.to 银行 77 意图分类最便宜 LLM:GPT-6.1 Terra 每次成功任务 $0.000727 theinformation.com Chesky的副业:Airbnb向CEO新设AI实验室出售IP theverge.com OpenAI 宣布数据中心项目不再与公职人员签署保密协议 dev.to NVIDIA 发布四个开放 Cosmos 3 仿真模型 dev.to 真实 MCP 客户端击穿我们服务器的五种方式 theverge.com Airbnb 正在开发 AI 旅行 agent,计划 2027 年上半年推出 wechat 这可能是美国AI最魔幻的一天。 nytimes.com 美众议院共和党领袖要求 Nvidia 黄仁勋闭门简报 pub.towardsai.net 忘掉我:为记忆而设计的系统中的删除难题 marktechpost.com Google 发布 Gemini Omni 1.2 Flash:15 秒视频,每秒 0.07 美元 unite.ai Airbnb 计划推出覆盖规划、预订与客服的 AI 旅行 agent techcrunch.com Airbnb 称将于 2027 年上半年推出 AI 旅行代理
多元动态
登录 注册
智能体 github.com · @yetone

yetone/magpie 发布 v0.1.1294:网关可模拟 Ollama 服务器并新增路由控制台

原文 我的收藏

magpie v0.1.1294 发布说明显示,其网关可作为 Ollama 服务器,使 Visual Studio 与 VS Code 中的 Copilot 在将网关设为 Ollama URL 后列出 magpie 的模型;新增显示网关路由的控制台;图像生成超时支持 1 至 60 分钟配置。此外还改进了模型 ID 展示、路由规则提示、Claude Desktop 语言记忆和 Qoder 回退,并修复 Hermes 环境变量密钥、403 账户禁用逻辑及 ClinePass GLM 路由等问题。

AI推荐理由 官方发布说明,信息密度较高且条目具体:网关可充当 Ollama 服务器,使 VS Code/Visual Studio 的 Copilot 能列出 magpie 模型;新增路由控制台;图像生成超时可配置;并修复多项路由与鉴权问题。局限是版本号密集的小版本更新,主要面向该工具现有用户,缺乏性能数据或独立验证。

62

正文

Official release notes (https://github.com/yetone/magpie/releases/tag/v0.1.1294) ## Features - The gateway can act as an Ollama server, so Copilot in Visual Studio and VS Code lists magpie's models when the gateway is set as the Ollama URL. - A console now shows the routing of the magpie that serves the gateway. - Image generation timeout is now configurable from 1 to 60 minutes. ## Improvements - Discovered groups now appear with the provider's exact model ID. - Models from the same provider with similar names now show details to tell them apart. - Routing rule menus are always visible, and saving without a condition now explains what to do under the rule. - Filters set on the Usage Requests page now clear when you leave the page. - Claude Desktop on magpie now remembers the language selected when signed in with Anthropic. - Qoder providers now fall back gracefully when the model list can't be read. ## Bug Fixes - Hermes API keys that use `${VAR}` environment variables now reach magpie correctly. - Command Code's Zero Data Retention refusals no longer stop the request and now go to another member. - Plain 403 responses no longer disable an account until its window, and identical 403s from two accounts on one request disable neither. - Model chips no longer change size when selected or unselected. - Routing groups now correctly use the largest member's rate limit window when the group name is typed. - ClinePass GLM models now route to Z.ai correctly. - Plugin list selections that disappear for a while now come back when the list is shown again. ### Install Download from [usemagpie.ai](https://usemagpie.ai), or `curl -fsSL https://usemagpie.ai/install.sh | sh`. An installed magpie updates itself. - **macOS (Apple Silicon):** `magpie-darwin-arm64.dmg` - **macOS (Intel):** `magpie-darwin-amd64.dmg` - **Windows:** `magpie-windows-amd64.exe` (ARM: `magpie-windows-arm64.exe`) - **Linux:** `magpie-linux-amd64` / `magpie-linux-arm64` (needs GTK 3 and WebKitGTK 4.1) - **Terminal only:** `magpie-cli--` ## 新功能 - 网关可以充当 Ollama 服务器,因此当网关被设置为 Ollama URL 时,Visual Studio 和 VS Code 中的 Copilot 会列出 magpie 的模型。 - 现在有一个控制台会显示为网关提供服务的 magpie 的路由。 - 图像生成超时现在可配置为 1 到 60 分钟。 ## 改进 - 发现的组现在会以提供方的确切模型 ID 显示。 - 来自同一提供方且名称相似的模型现在会显示详细信息,以便区分它们。 - 路由规则菜单始终可见;在没有条件的情况下保存时,现在会在规则下方说明需要做什么。 - 在“使用请求”页面上设置的筛选条件现在会在离开页面时清除。 - magpie 上的 Claude Desktop 现在会在通过 Anthropic 登录时记住所选语言。 - Qoder 提供方现在会在模型列表无法读取时正常回退。 ## 错误修复 - 使用 `${VAR}` 环境变量的 Hermes API 密钥现在可以正确传递到 magpie。 - Command Code 的零数据保留拒绝现在不会再停止请求,而是会转到另一个成员。 - 普通 403 响应不再会在窗口期内禁用账户;同一次请求中来自两个账户的相同 403 响应也不会禁用其中任何一个账户。 - 模型标签在选择或取消选择时不再改变大小。 - 当输入组名时,路由组现在会正确使用成员中最大的速率限制窗口。 - ClinePass GLM 模型现在会正确路由到 Z.ai。 - 插件列表中的选定项如果暂时消失,现在会在列表再次显示时恢复。 ### 安装 从 [usemagpie.ai](https://usemagpie.ai) 下载,或运行 `curl -fsSL https://usemagpie.ai/install.sh | sh`。已安装的 magpie 会自动更新。 --- The same release, and the feed magpie updates from: https://github.com/yetone/magpie-releases/releases/tag/v0.1.1294 Repository README (current repository documentation, not release changes) # magpie ### Every agent's model. One place. **Claude Code on Kimi. Codex on DeepSeek. Gemini CLI on GLM. OpenCode on your ChatGPT plan.** Switch any of them from the menu bar. One local gateway serves them all, and when a quota runs out, it quietly moves on to the next account. [![Release](https://img.shields.io/github/v/release/yetone/magpie-releases?label=release&color=111111)](https://github.com/yetone/magpie-releases/releases/latest) [![Stars](https://img.shields.io/github/stars/yetone/magpie?style=flat&color=111111)](https://github.com/yetone/magpie/stargazers) [![Discord](https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white)](https://discord.gg/vGSnD3ZKQF) [![License](https://img.shields.io/badge/license-MIT-111111)](LICENSE) ![macOS](https://img.shields.io/badge/macOS-000000?logo=apple&logoColor=white) ![Windows](https://img.shields.io/badge/Windows-0078D4?logo=windows&logoColor=white) ![Linux](https://img.shields.io/badge/Linux-FCC624?logo=linux&logoColor=black) ![Docker](https://img.shields.io/badge/Docker-2496ED?logo=docker&logoColor=white) ![Termux](https://img.shields.io/badge/Termux-000000?logo=android&logoColor=white) Sponsors    **[Download](https://usemagpie.ai)**  ·  **[Docs](https://usemagpie.ai/docs/start)**  ·  **[Reference](docs/reference.md)**  ·  **[Plugins](https://github.com/magpie-community/plugins)**  ·  **[Discord](https://discord.gg/vGSnD3ZKQF)**  ·  **English** · [简体中文](README.zh-CN.md) ## Is magpie for you? Each agent keeps its model in its own file, in its own format, with its own keys and base URLs. A subscription you pay for works in one agent and nowhere else. magpie puts all of that behind one app and one local gateway: - **Pick any model for any agent** from one list. magpie edits the one key that matters in the agent's own config. - **Use one provider everywhere**: an API key, a local model, or the Claude, ChatGPT, Copilot, Gemini or Grok plan you're signed in to. - **Keep going when a quota runs out**: a routing group moves to the next account or model, and the agent never sees the error. It's for you if you use more than one agent, more than one provider, or more than one account. If you use one agent on its vendor's own plan and that's enough, you don't need it. Runs on macOS, Windows and Linux (menu bar app, window, TUI, web UI and CLI), in Docker, and on Termux. ## Quick start **1 · Install.** Download the app from **[usemagpie.ai](https://usemagpie.ai)**, or run: ```sh curl -fsSL https://usemagpie.ai/install.sh | sh ``` Mac builds are signed and notarised, and every build updates itself. Behind a firewall, use `--proxy` or `--mirror`. Or `go install github.com/yetone/magpie@latest`, or the [Docker image](https://usemagpie.ai/docs/docker). **2 · Add a provider.** Open magpie and go to **Providers → Add provider**. Pick a preset and paste a key, or sign in with a subscription. **3 · Pick a model** for each agent on the **Agents** page. Start a new session and it's on the new model. Or do it all from the terminal: ```sh magpie provider add deepseek sk-… # a preset needs only the key magpie claude deepseek/deepseek-v4-pro # Claude Code on DeepSeek magpie codex moonshot/kimi-k2.5 # Codex on Kimi magpie group add "Opus anywhere" models=claude/claude-opus-5-5,copilot/claude-opus-5.5 routing=smart magpie claude group/opus-anywhere # fails over between subscriptions magpie save work && magpie use work # profiles magpie quota # what's left on every plan magpie tui # the whole thing, in a terminal ``` magpie finds the subscriptions your agents are signed in to by reading their sign-ins (Claude Code's and Codex's files, the Keychain). To keep it from reading them, turn off Settings → Privacy → *Subscription accounts*, or run `magpie accounts discovery off` (`on` turns it back on). `MAGPIE_NO_ACCOUNTS=1` turns it off for one run without changing the saved setting. API-key providers work either way. ## Supported agents Claude Code · Claude Desktop · Claude Science · Codex · Gemini CLI · Antigravity CLI · OpenCode · OpenChamber · MiMo Code · DevEco Code · Pi · oh-my-pi · StepCode · MothX · Aside · OmO · Prime Agent · Goose · Cursor CLI · Cursor Private Inference · Zed · VS Code Chat · VS Code Insiders · VSCodium Chat · JetBrains Air · Copilot (JetBrains) · Copilot CLI · Crush · DeepSeek Harness · Reasonix Studio · Command Code · fx · Devin · Hermes Agent · Mister Morph · Kimi Code · jcode · Qwen Code · Muse Code · Empryo · MiniMax Code · Droid · Cline · Qoder · Qoder CN · Grok Build · Grok App · ZCode · WorkBuddy · WorkBuddy AI · CodeBuddy Code · Pencil · OpenPencil · Raycast · T3 Code · OpenHanako · AtomCode · Snow CLI · Alma · Cindy · Lody · Ante · AstrBot magpie shows only the agents installed on your machine; setup notes for some of them are in the [reference](docs/reference.md#notes-on-some-agents). Anything else that takes a base URL can use the gateway too: ```sh export OPENAI_BASE_URL=http://127.0.0.1:3425/v1 OPENAI_API_KEY=magpie export ANTHROPIC_BASE_URL=http://127.0.0.1:3425 ANTHROPIC_API_KEY=magpie export GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:3425 GEMINI_API_KEY=magpie ``` ## How it fits together The gateway at `127.0.0.1:3425` speaks OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini, and translates between them, streaming, tool calls and reasoning included. ## What it does ### Any model, any agent Click a value and a searchable list opens: every model of every provider you added, as `provider/model`. The agent's config is rewritten atomically, and its comments, order and formatting stay as they were. **Profiles** save every agent's setup under one name ("Budget", "Focus") and switch them all back in one move. Each agent can also have its own short list of models; a profile keeps that list too. ### Providers Pick a preset, paste a key. Model lists come from the vendor, with names and reasoning levels filled in from [models.dev](https://models.dev), so a model released this morning is in your picker on the next refresh. > **Presets include** Anthropic · OpenAI · Google Gemini · Google Vertex AI · Amazon Bedrock (runtime and Mantle) · DeepSeek · Kimi · Zhipu GLM · MiniMax · StepFun · Qwen · Baidu Qianfan · Tencent Cloud · Huawei Cloud MaaS · Volcengine Ark · Mistral · Groq · Nous Portal · xAI · OpenRouter · Together · Fireworks · SiliconFlow · NVIDIA NIM · ModelScope · Ollama · LM Studio … and any OpenAI- or Anthropic-compatible URL. **Import** brings in the providers from CC Switch, Claude Code, Codex and Alma. **[Add to magpie](https://usemagpie.ai/docs/import)** links let a provider's website hand its config to magpie in one click. Each key and each account can go through a proxy of its own. ### Subscriptions An agent you're signed in to is a subscription with models behind it, so magpie offers it as a provider to every other agent. Add several accounts per subscription and magpie fails over between them. - **Claude**: drives the real local `claude` binary and bridges your agent's tools over MCP - **Codex / ChatGPT**: your ChatGPT plan's models, in every other agent - **GitHub Copilot**, **Gemini (Code Assist)**, **Antigravity**, **Grok (SuperGrok)** and more - **Any OpenCode auth plugin or pi package** from npm **Daily warm-up** starts each Claude and ChatGPT account's 5-hour window at the times you choose, or the moment the last one resets. ### Routing groups A **routing group** is several models an agent picks as one, such as `group/daily-coding`. The gateway spreads requests over every member's keys and accounts: | Mode | What it does | | :-- | :-- | | **`smart`** | Of the subscriptions with quota left, use the one that renews soonest, so less is wasted at the reset | | **`order`** | Use the first model until it can't answer, then the next | | **`rotate`** | Move to the next member on each turn | | **`usage`** | Use the least-used member first | | **`pace`** | Use the account with the most of its week left per hour until it resets | A conversation **stays with the account that answered it** while the vendor's prompt cache is worth keeping. Groups can contain groups. **[Intent routing](https://usemagpie.ai/docs/intent)** has a small model of your choice read each new turn, so tests go to the strong model and quick questions to the cheap one. The Routing view shows every decision live. ### Plugins ```sh magpie plugin add opencode-gemini-auth # an OpenCode plugin from npm magpie plugin add pi-antigravity # a pi package, the same way magpie plugin login google-plugin # its own sign-in flow, in magpie ``` Plugins run on [Bun](https://bun.sh), downloaded the first time one needs it. A plugin signs in, lists its models and makes each request; agents use those models like any other provider's. Browse **[magpie-community/plugins](https://github.com/magpie-community/plugins)**, or [write your own](https://usemagpie.ai/docs/plugins). A plugin can also be **gateway middleware**: JavaScript that sees what every agent sends and gets back. `onRequest` can rewrite a request or turn it away, `onEvent` sees each streamed event, `onResponse` the whole reply. A hook that throws or runs too long leaves the request as it was. ```js // alias.middleware.js — magpie plugin add ./alias.middleware.js export function onRequest(body, ctx) { if (body.model === "fast") return { ...body, model: "deepseek/deepseek-chat" }; } ``` Ready-made middleware, most of it what New API does for its channels, with the same JSON | Package | What it does | | :-- | :-- | | `param-override` | New API's `param_override`: set, delete, move or rewrite request fields, under conditions, or turn a request away | | `model-map` | New API's `model_mapping`: send a model under another name; replies keep the name asked for | | `system-prompt` | Your system prompt on every request, or some agents' or models' | | `word-guard` | New API's sensitive-word filter: turn away or mask words in what users send, and in replies | | `think-tags` | Take `…` out of replies, or put `reasoning_content` into them | ```sh magpie plugin add @magpie-community/middleware-model-map magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}}' ``` Find them under Plugins › Discover › Gateway middleware. See [Gateway middleware](https://usemagpie.ai/docs/plugins#middleware). ### Usage and cost | | | | :-- | :-- | | **Tokens and cost** | Tokens, cache reads and writes, reasoning and calls, with cost at list price in dollars or yuan; set your own price for any model | | **Quota** | Balances and quota windows for every key, plan and account (`magpie quota`), and a reminder before a window renews with much of it unused | | **Sessions** | Every agent conversation with its cost and title, reopened in your terminal with one click | | **Context** | How full each request's context window is, how much came from the cache, and what fills it | | **Bills** | By account and by upstream key, and OTLP export to your own observability stack | ### Sharing | | | | :-- | :-- | | **Local network** | Turn on *Share on local network* and give each client a named gateway key with its own daily, weekly or monthly token and cost limit | | **[Remote magpie](https://usemagpie.ai/docs/remote)** | A laptop uses the providers, accounts and groups of the magpie on your desktop, and still wires its own agents | | **[Docker](https://usemagpie.ai/docs/docker)** | Run `ghcr.io/yetone/magpie` on a server or a NAS and manage it from the web UI | | **Sync** | Back up to a file, or sync machines over WebDAV (Nutstore, Nextcloud…), S3, or an encrypted GitHub repository backup | ### Also - **Library**: write instructions, MCP servers, skills and subagents once; magpie writes them into each agent's files in its format, and removes only what it wrote. - **Web search for any model**: a model that can't search gets magpie's search: a provider that can, or search APIs (Tavily, Brave, Exa, Firecrawl, You.com, DeepSeek, SearXNG), asked in the order you drag them into, each one able to be switched off without losing its key. An API can hold several keys: searches take turns over them (or use them in order with `pick=order`), a key refused lately is asked last, and Tavily keys show what each has used of its limit, in Settings and in `magpie search`. Any agent can mount the same search as an MCP server, with a `web_search` tool and a `web_fetch` tool that reads a page by its URL. - **Images and video**: an image tool for any agent over MCP, with the model you choose, and videos with a Grok subscription. - **Agents kept current**: the Agents page shows each CLI's version, updates it the way it was installed, and gives the commands for the ones you don't have. - **WSL**: on Windows, agents inside WSL distros are wired too, and their sessions counted. - **Keep awake**, light and dark, and your theme's look on [Omarchy](https://omarchy.org). ## Documentation | | | | :-- | :-- | | **[Get started](https://usemagpie.ai/docs/start)** | The guided tour | | **[Reference](docs/reference.md)** | Every agent, provider option, gateway endpoint, CLI command and file | | **[Plugins](https://usemagpie.ai/docs/plugins)** | Use plugins and write your own | | **[Intent routing](https://usemagpie.ai/docs/intent)** | Route each turn by what it asks for | | **[Import links](https://usemagpie.ai/docs/import)** | "Add to magpie" buttons for provider websites | | **[Remote magpie](https://usemagpie.ai/docs/remote)** | Use one magpie's providers and groups from your other computers | | **[Docker](https://usemagpie.ai/docs/docker)** | Run magpie on a server or a NAS | ## Privacy Your prompts, replies, keys and accounts go only to the providers you use. Once a day a released magpie tells us it is in use: a random id, its version and system, and which agents, providers and models it is used with, by magpie's own ids (a provider you added yourself is only `custom`), and for each partner listed first in the add sheet, how many times a day it was shown, opened and added (counts only). No names, URLs, accounts, keys, prompts or usage. Turn part or all of it off in **Settings → Privacy**, or with `DO_NOT_TRACK=1`. A partner's website and key links go through `usemagpie.ai/go/…`, which counts the click, and usemagpie.ai counts fetches of the partner list; the server sees these whatever the settings, and keeps no id or address. Icons named by a plugin, an import link or the library are fetched through `usemagpie.ai/api/icon`, so their hosts see Cloudflare's address, not yours; the server only passes the picture on, and counts and keeps nothing. The [Privacy page](https://usemagpie.ai/docs/privacy) lists everything magpie sends by itself, with an example and every switch; the [reference](docs/reference.md#counting-users) has the rules. ## Community Questions, ideas, or a model that won't show up? Tell us on **[Discord](https://discord.gg/vGSnD3ZKQF)**. That is where feedback goes. **This repository doesn't take pull requests.** Only maintainers can open them. If you'd like a fix or a feature, describe it on Discord and we'll build it. If magpie saved you from editing one more config file, **a ⭐ helps others find it.** ## License [MIT](LICENSE)

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容