Files
plugins/packages/meowcode
MuLiu_SaMa 418d81d896 agent-meowcode 0.1.0: MeowCode as a magpie agent (#1107)
Adds MeowCode (https://github.com/MuLiuSaMa/MeowCode) to the Agents page. magpie writes %APPDATA%\MeowCode\agent\magpie.json, an overlay MeowCode 1.3.0+ reads at start-up and never writes; the user's own providers and keys are untouched. The row's notice says it needs MeowCode 1.3.0 or later.

By @MuLiuSaMa (#1107).

Reviewed at 4593caec:
- MeowCode's reader, desktop/magpie-overlay.cjs, is the same blob (59e0c926) at 3d47a099 and at the v1.3.0 release tag; it reads every field this package writes, keeps only magpie/ ids with loopback baseUrls, and treats {} as no overlay.
- WSL, HOME=$(mktemp -d), merged onto main c95e20a3: bun test in packages/meowcode 5 pass; bun scripts/check.mjs meowcode ok.
- Not tried: a real MeowCode install (Windows only); the author's screenshots cover the real run.
2026-11-14 01:45:20 +08:00
..

@magpie-community/agent-meowcode

MeowCode as a magpie agent.

Pick one of magpie's models in the MeowCode row. magpie writes a file of its own, %APPDATA%\MeowCode\agent\magpie.json, and leaves your settings.json alone:

{
  "magpieKey": "magpie-meowcode",
  "providerId": "magpie/deepseek/pro",
  "providers": [
    {
      "id": "magpie/deepseek/pro",
      "name": "Magpie",
      "baseUrl": "http://127.0.0.1:3425/v1",
      "model": "deepseek/pro",
      "protocol": "openai-chat-completions",
      "authStyle": "none",
      "extraHeaders": { "Authorization": "Bearer magpie-meowcode" },
      "enabled": true
    }
  ]
}

MeowCode 1.3 and later reads that file as an overlay when it starts: every magpie model shows up in MeowCode's own model list as the Magpie provider, beside the providers you set up yourself, and the model picked in the row is the one MeowCode starts on. Your own providers, keys and settings are left as they are — MeowCode never writes the overlay, and writing settings from MeowCode never writes magpie's models into settings.json.

MeowCode reads the overlay at start-up only: restart MeowCode after connecting, after switching MeowCode's model in the row, or after switching magpie off. The Magpie group in MeowCode's settings is read-only, since its models come from magpie; their enabled state and reasoning effort are kept in MeowCode across restarts.

MeowCode keeps only loopback gateway addresses (127.0.0.1, localhost, [::1]) from the overlay. If magpie writes another address — a gateway shared on the LAN, say — those records are left out and no magpie models appear.

Switching magpie off clears the keys it wrote; MeowCode ignores the empty file and, after a restart, is back on your own providers. Disconnect MeowCode before uninstalling magpie.

How agent plugins work: usemagpie.ai/docs/plugins#agents.