LongCat makes its own models (LongCat-2.5, launched 11-02) and serves them
at api.longcat.chat. magpie had LongCat's icon but no preset for it.
The new preset is longcat ("LongCat", KindVendor, icon longcat, catalog
models.dev's longcat). It uses:
- chat completions and Responses at https://api.longcat.chat/openai/v1;
- Anthropic messages at https://api.longcat.chat/anthropic;
- docs at longcat.chat/platform/docs/zh/api-docs, keys at
longcat.chat/platform/api_keys.
The key goes as a Bearer. magpie sends both headers, and the docs ask for
Bearer on both endpoints; x-api-key alone gets "missing_api_key". The model
list is /openai/v1/models. longcat.chat's and longcat.ai's accounts use the
same API host (both sites' api-docs pages name api.longcat.chat).
An entry at those endpoints imports as the preset, for example CC Switch's
Claude Code and Codex entries from LongCat's cc-switch page. OpenCode's
auth.json "longcat" (models.dev's id) maps to the preset too. The README
(en, zh), docs/reference.md and the site's import pages (en, zh, ja, and
import.html, with the icon) list it.
Sources, read 11-02: api-docs, api/models, api/model, api/model-params,
api/chat, api/messages, image-video-understanding, cc-switch, pricing/
longcat-2.5, change-log, faq.
Probed without a key, from this machine: /openai/v1/models and
/anthropic/v1/models answer 401 authentication_error "missing_api_key".
/openai/v1/chat/completions, /openai/v1/responses and
/anthropic/v1/messages with a bad Bearer answer 401 "incorrect api key".
Run at this head (base d24be3c25, origin/main at push), on mote:
- TestLongCatPreset and TestLongCatList (the docs' literal /models
example) pass. TestLongCatPreset goes red with the OpenCode mapping taken
out ("OpenCode import: … Skip:it has no base URL").
- gofmt -l and GOOS=linux / GOOS=windows go vet ./internal/provider are
clean.
- go test -tags nogui -timeout 45m ./... is ok except three tests that
have issues already:
- TestEveryRouteHasACommandOrIsNamed (#4826) is red on a clean
d24be3c25 too.
- TestKeepOffWaitsForTheSetting (#3687) is red on a clean d24be3c25 too.
- TestCodexPoolSaysTheClientsVersion (#4807) is red in the full package
run and passes 3 of 3 alone on d24be3c25.
- GUI add-sheet and add-button pass in Chromium and WebKit (12/12). No GUI
file changed: the add sheet draws presets from /api.
Not tried:
- a real LongCat key or a real request (none available).
- LongCat-2.5's window (1M), output cap (256K) and image input. These come
from models.dev, which so far lists only LongCat-2.0 and
LongCat-2.5-Preview, and LongCat's /models gives no facts. Until
models.dev adds LongCat-2.5, magpie doesn't know them for it.
- LongCat's thinking switch ({"type":"enabled"|"disabled"}).
An import link could set chat=, responses= and anthropic= but not
gemini=, though the editor and the TUI take a Gemini base URL; a link
with only gemini= failed with "it needs chat=, responses= or anthropic=".
ParseImport now reads gemini= under the same base-URL rules, and the
error names it (ggbdpq's patch, with docs/reference.md and the en/zh
docs rows).
Its siblings that listed the three base URLs:
- the GUI's import dialog warned "Your prompts and this key will go to ;"
with no host for a gemini-only link: it names the Gemini host now;
- the site's handoff page (site/public/import.html) left it out of
"Sends to";
- the docs' link builder (en, zh, ja) had no Gemini field and didn't
count it as a base URL; the ja docs lacked the table row, and all
three said one of chat/responses/anthropic is required.
Run:
- TestParseImportGemini fails on the old importurl.go ("the link gives
no base URL: it needs chat=, responses= or anthropic="), passes now;
go test -run Import ./internal/provider/ ./internal/gui/: ok.
- import-link-gemini.test.cjs: 20/20 (chromium+webkit, en/zh/zh-TW/ja/de,
1100 and 420 px); against the old app.js the warning reads "will go to
;" and it fails.
- docs builder (en/zh/ja) and handoff page in Chromium from file://: a
gemini-only builder gives magpie://import?name=…&gemini=…, no errors;
the handoff page lists gem.example under Sends to.
- gofmt -l; go vet darwin, GOOS=linux -tags nogui, GOOS=windows: clean.
Not tried: a real magpie://import click through the OS handler.
Co-authored-by: ggbdpq <ggbdpq@gmail.com>
Nous Research makes the Hermes models and serves them, with other makers'
models, through Nous Portal. #392 was wrongly answered as a relay. A new
preset, nous ("Nous Portal", KindVendor with Hosts, lobe-icons
nousresearch icon), points chat completions at
https://inference-api.nousresearch.com/v1. A Portal API key goes in as a
Bearer, the way Hermes Agent's own nous-api provider uses NOUS_API_KEY.
The model list is the Portal's /v1/models, which uses vendor/model ids.
An entry another app has at that URL, such as Hermes Agent's base_url,
now imports as the preset.
The preset sets no Anthropic endpoint. The Portal's /v1/messages serves
only its anthropic/* models (Hermes Agent's
test_nous_portal_anthropic_wire.py), so Claude Code's requests are
translated to chat completions for every model. It sets no Responses
endpoint either, because none is documented.
The preset is added to the README (en, zh), docs/reference.md, and the
site's import pages and icon.
Sources:
- hermes-agent docs: integrations/nous-portal, integrations/providers,
features/subscription-proxy.
- hermes-agent source at 6e7b83a2: hermes_cli/auth_constants.py
(DEFAULT_NOUS_INFERENCE_URL), plugins/model-providers/nous,
cli-config.yaml.example ("nous-api - Nous Portal API key (requires:
NOUS_API_KEY)"), agent/anthropic_endpoints.py, and
tests/e2e/core/live/_helpers.py, whose live run calls the Portal with
NOUS_API_KEY.
Probed without a key:
- /v1/models answers 200 with 423 models.
- /v1/chat/completions with a bad Bearer answers 401 "Your API key is
invalid, blocked or out of funds".
- /v1/messages answers an Anthropic-shaped 401.
Not tried: a real Portal key or a real request, since no key was
available. Also not built: OAuth sign-in with the 1-hour token and its
refresh (Hermes Agent's ~/.hermes/auth.json).
Run:
- TestNousPortalPreset fails without the preset (no preset "nous") and
with an Anthropic endpoint added (endpoints: … "https://inference-api.nousresearch.com").
- go test -tags nogui of internal/provider, internal/gui and
internal/catalog passes.
- gofmt -l is clean.
- go vet, GOOS=linux go vet and GOOS=windows go vet -tags nogui on
./internal/provider pass.
- add-sheet and add-button GUI tests pass in Chromium and WebKit (6/6).
* providers: qianfan personal, team and pay-as-you-go endpoints as its preset regions
* providers: qianfan review fixes — pay-as-you-go fetches /v2/models, enterprise naming, the plans' union models, a zh note
* providers: qianfan plans list nothing, pay as you go does — NoList scoped by region
* providers: qianfan review round two — old id maps to the new preset, the union models, IAM keys and a README section
* providers: qianfan key link follows the region — normalize takes it from the endpoints, the button from the plan picked
* providers: ParseImport takes a region key page
usemagpie.ai/docs/import explains import links, with a link builder and
buttons to copy; usemagpie.ai/import#… turns the fragment into a
magpie:// link and offers the download. install.sh registers the scheme
on Linux.