magpie icon indicating copy to clipboard operation
magpie copied to clipboard

Add a built-in QCode.cc provider preset so agents can use QCode models

Open shilefumaoqu opened this issue 2 weeks ago • 0 comments

What you want to do

Add QCode.cc as a built-in relay/provider preset so the agents already supported by magpie can use its models without manually filling in multiple endpoints.

QCode is a model API service, not a separate agent. Its documented endpoints are:

  • Anthropic Messages: https://api.qcode.cc/api
  • OpenAI Chat Completions: https://api.qcode.cc/openai/v1
  • OpenAI Responses: https://api.qcode.cc/openai
  • Website: https://qcode.cc
  • API key page: https://qcode.cc/dashboard

It also provides Asia and US entry points (asia.qcode.cc and us.qcode.cc) with the same paths. A preset with the three protocol endpoints, key link, website, and regions would let users add QCode in one step and then select models such as qcode/claude-sonnet-5-5 or qcode/gpt-6.1-sol for Claude Code, Codex, and other supported agents.

What you do today instead

Add QCode manually as a custom OpenAI/Anthropic-compatible provider, use QCode's import link, or run:

magpie provider add QCode \
  anthropic=https://api.qcode.cc/api \
  url=https://api.qcode.cc/openai/v1 \
  responses=https://api.qcode.cc/openai \
  key=cr_xxx

This works, but requires users to know which protocol goes with which endpoint and which model families are available on each endpoint. A built-in preset would make the setup consistent with the other relay presets.

QCode's integration notes and the current manual workaround are documented here: https://docs.qcode.cc/docs/ide/magpie

I found no existing QCode issue when searching the repository before opening this request.

shilefumaoqu avatar Nov 17 '26 15:11 shilefumaoqu