Skip to content
Xcode

Editors and IDE extensions

Use Xcode with Shannon

Add Shannon as an Internet Hosted chat provider in Xcode's Intelligence settings and pick a Shannon model in the coding assistant.

  • From the Xcode docs, Nov 7, 2026
  • OpenAI Chat Completions
  • About 2 min

About Xcode

Xcode is Apple's IDE for building apps for Apple platforms. Its coding assistant answers questions about your project, writes and changes code, and keeps a history of the edits it makes. Added as an Internet Hosted chat provider, Shannon models appear in the assistant next to the providers Xcode lists.

What you need

A Shannon API key
Keys & usage
Base URL
https://api.shannon-ai.com/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Add an Internet Hosted provider

    Choose Xcode → Settings, select Intelligence, and under Chat click Add a Chat Provider. Select Internet Hosted.

  2. Enter the URL and key

    Enter the URL without /v1: Xcode itself calls {URL}/v1/models and {URL}/v1/chat/completions. Xcode sends the API Key field as the whole value of the header named in API Key Header, so include Bearer . Click Add.

    Internet Hosted
    URL:            https://api.shannon-ai.com
    API Key:        Bearer YOUR_API_KEY
    API Key Header: Authorization
    Description:    Shannon
  3. Pick a Shannon model

    Xcode loads the model list from GET /v1/models. Choose a Shannon model in the coding assistant and send a prompt.

Check that it works

Send: Explain what the selected Swift file does.

You should see: The coding assistant answers with the Shannon model chosen in its model menu.

Models that fit Xcode

Every id below meets what Xcode needs. The first one is the default in the snippets.

Model idContext windowMax outputImage input
Kimi-K3-uncensored-NVFP4 1,022,976 262,144 Yes
shannon-coder-1 131,072 65,536 No
Kimi-K3.1-Pro-uncensored-NVFP4 1,022,976 262,144 Yes
Kimi-K3-uncensored-3BIT-REAP 225,280 225,280 Yes
shannon-3 196,608 65,536 Yes

Good to know

  • Xcode lists every id that GET /v1/models returns.
  • Apple's guide names only the URL and the two endpoints; the key fields above are the ones the Internet Hosted dialog shows. Shannon also accepts API Key Header x-api-key with the bare key.
  • Some Xcode releases label the button Add a Model Provider.
  • On managed Macs, the CodingAssistantAllowExternalIntegrations MDM key set to false turns the coding assistant's external providers off.

Tips

  1. Command-0, or the Coding Assistant button above the navigator, opens the coding assistant and its list of conversations.
  2. Type @ in the message field to reference a symbol or file; the Attachments menu in the lower-left corner adds files from inside or outside the project.
  3. To roll back the assistant's edits, choose History from the Adjust Editor Options menu and move the slider; the project needs a Git repository.
  4. Command-Option-0 in the source editor opens the coding tools popover, with actions such as Explain and Generate a Preview for the selected code.

Troubleshooting

SymptomCauseFix
No models appear The URL ends in /v1 or a slash, so Xcode requests /v1/v1/models. Enter exactly https://api.shannon-ai.com.
401 Unauthorized API Key Header is Authorization but the key lacks Bearer . Enter Bearer sk-…, or switch the header to x-api-key with the bare key.
401 Unauthorized The key is missing, mistyped or rotated. Copy the key again from Keys & usage; it starts with sk-.
context_length_exceeded / "prompt is too long" The conversation is longer than the model's window. Start a new chat, let the tool compact it, or pick a model with a larger window.
insufficient_quota Your balance cannot pay for the request. Top up or change plan; the request is not retried by itself.

Questions

Does Xcode work with Shannon?

Yes, as an Internet Hosted chat provider at https://api.shannon-ai.com; Xcode uses Shannon's /v1/models and /v1/chat/completions.

Which API does Xcode use?

Only the OpenAI Chat Completions API, plus /v1/models for the model list.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical