PanCode
All tutorials

Models and agents6 min read

Choose a model for your project

Connect a local server, a cloud API, or a supported subscription route, then choose models separately for conversation and delegated work.

Written for
v0.9.0
Works in
Terminal · Desktop alpha
Basis
Documented workflow
Updated
Guided setup in the terminal after choosing GitHub Copilot SDK: it notes that researcher's GitHub Copilot subscription on github.com is used under the organization's Copilot policies, tests copilot-sdk / gpt-6-luna (answered in 3.2 s), saves target copilot-sdk as the chat and fleet default, writes ~/.config/pancode/settings.yaml, and ends with how to start pancode and change the setup later with pancode configure.
Accepting the offer tests the recommended model and saves it as the default for chat and workers. Terminal · v0.9.1
On this pageBefore you start Decide where inference may run Connect one model Ask one question you can check Separate conversation from worker models Choose capabilities deliberately

PanCode lets you choose the model connection around your project. Start with the place your code is allowed to go, then choose a model and runtime that can do the task. A local GPU, a model server, an institutional gateway, and a cloud API are different deployment choices.

If you already connected a model, skip to Separate conversation from worker models below.

Before you start

  • Linux, macOS, or WSL. The installer supplies Node.js.
  • A repository you know, so you can judge the first answer.
  • One model route you are allowed to use for this code: an app on your computer, a model server, an AI subscription, or a provider account.

Decide where inference may run

On first setup, Guided setup asks what you have. Choose by where the model input may go, then by what you already run.

Answer Where inference runs What it covers
An API key The provider Anthropic, OpenAI, Google, OpenRouter, Groq, Mistral, DeepSeek, and others
A subscription The provider ChatGPT Plus or Pro, Claude Pro or Max, or GitHub Copilot
A model server or gateway The server you name Ollama, LM Studio, llama.cpp, vLLM, LiteLLM, or any OpenAI-compatible address
A setup file from my lab or team The connections the file names A path or https address someone gave you

When setup finds a route first, such as a provider key in your environment or a model server on a default local port, it lists that route before asking. A subscription-backed route has its own authentication and usage conditions; it is not interchangeable with an API account. The connection guide covers each route.

Where each part runs

  1. Your computer

    PanCode and its tools

    The session, repository tools, and approvals run where you start PanCode.

  2. model requests

    The route you choose

    Inference

    A local app, a model server, a subscription, or a provider API.

  3. delegated work

    Where a worker runs

    Worker tools

    On this computer by default, or on an SSH node you configure.

PanCode, its tools, and inference can run in different places. Choosing a remote model does not move your files or tools there.

Connect one model

  1. Install PanCode

    Shell

    curl -fsSL https://pancode.dev/install.sh | sh
    cd /path/to/your/project
  2. Start guided setup

    Shell

    pancode configure

    Choose Guided setup. The desktop alpha offers the same wizard after pancode gui --open. In a terminal session, /config opens your connections, where Add a connection runs the wizard without leaving the session.

  3. Pick the route and the model

    Answer what you have, then provide the key, sign-in, or server address it asks for. Setup takes the provider's recommended model, or the only model a server lists; otherwise you pick from the list. For a local server with no models, load one and choose Check again.

  4. Test the connection, then save

    Setup sends the model one short test request and saves when it answers. After a failure you can try again, change the key or address, or choose Save anyway. The first connection supplies the chat and worker defaults, and /model changes the model later.

  1. Guided setup in the terminal on a fresh profile: the welcome text says one short test message is sent before saving, and PanCode found a way to reach a model, offering GitHub Copilot SDK, signed in, with model gpt-6-luna recommended, or Set up something else for an API key, a subscription or a server.

    01 When setup finds a stored sign-in it offers that first; Set up something else leads to the other routes. Terminal · v0.9.1

  2. Guided setup in the terminal asking what you have: an API key, a subscription, a model server or gateway, or a setup file from your lab or team, with the providers behind the first three and a path or https address for the setup file; the welcome text above says one short test message is sent before anything is saved.

    02 Guided setup asks what you have: an API key, a subscription, a model server or gateway, or a setup file. Terminal · v0.9.1

  3. Guided setup in the terminal after choosing GitHub Copilot SDK: it notes that researcher's GitHub Copilot subscription on github.com is used under the organization's Copilot policies, tests copilot-sdk / gpt-6-luna (answered in 3.2 s), saves target copilot-sdk as the chat and fleet default, writes ~/.config/pancode/settings.yaml, and ends with how to start pancode and change the setup later with pancode configure.

    03 Accepting the offer tests the recommended model and saves it as the default for chat and workers. Terminal · v0.9.1

Guided setup in the terminal: a stored sign-in it found, the routes it offers, and the saved connection.

After setup, /model lists the models of every connection and switches the conversation between them:

Fullscreen terminal recording of the /model picker in PanCode on GitHub Copilot: the session starts on gpt-6-luna, the picker lists 26 models on the copilot target, and claude-sonnet-5.5 and gemini-4-argon are chosen in turn by typing part of the name, each changing the status bar's model and context size, before the session returns to gpt-6-luna.
One subscription, many models: /model lists what the connected target offers and switches the session without leaving the conversation. Terminal · v0.9.1 Recording · 0:20
Transcript
Switching models in PanCode
Recorded with PanCode 0.9.1. Each section is the terminal screen at that moment.

== ready





                           ∀  PanCode 0.9.1 · Systems software for coding agents
                          /usage shows activity, accounts and model use.




















━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ∀  default · calibration-lab │ ✓ ready                                                 gpt-6-luna

== models






 ∀  PanCode 0.9.1






━ Models ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  all · 26 of 26 models · 1 target · ✓ current copilot · gpt-6-luna
      model                  ctx  caps  target   runtime
  ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
  ❯ ✓ gpt-6-luna            272k  TRV   copilot  GitHub Copilot
      auto                     ?  T     copilot  GitHub Copilot
      claude-sonnet-5.5     200k  TRV   copilot  GitHub Copilot
      claude-sonnet-5       200k  TRV   copilot  GitHub Copilot
      claude-opus-5.5       200k  TRV   copilot  GitHub Copilot
      claude-opus-4.8-fast  200k  TRV   copilot  GitHub Copilot
      claude-haiku-5.5      100k  TRV   copilot  GitHub Copilot
      claude-haiku-4.5      136k  TV    copilot  GitHub Copilot
      gpt-6.1-sol           272k  TRV   copilot  GitHub Copilot
      gpt-6-sol             272k  TRV   copilot  GitHub Copilot
  1–10 of 26 models · PgUp/PgDn page
  ✓ copilot · gpt-6-luna · healthy · in use, its connection's default · no sign-in needed
━━━━━━━━━━━━━━━━━ [type] filter · [Enter] use · [s] save · [Tab] focus/all · [*] fav · [Esc] close ━
  ∀  default · calibration-lab · main │ ✓ ready                         ctx 272k · low · gpt-6-luna

== sonnet













 ∀  PanCode 0.9.1













━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…  ? keys · / commands
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ∀  default · calibration-lab · main │ ✓ ready              ctx 200k · low · claude-sonnet-5.5 · ?

== gemini













 ∀  PanCode 0.9.1













━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…  ? keys · / commands
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ∀  default · calibration-lab · main │ ✓ ready                 ctx 200k · low · gemini-4-argon · ?

== back













 ∀  PanCode 0.9.1













━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…  ? keys · / commands
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ∀  default · calibration-lab · main │ ✓ ready                     ctx 272k · low · gpt-6-luna · ?

What you should see

When setup shows a model list, the list says whether it is live, cached, or the provider's catalog; a server that lists one model skips the list. The test request shows that the model answers; it does not test tool calling. An answer is useful, but it is not a coding benchmark.

Ask one question you can check

Ask PanCode

Explain this project's build and test entry points. Do not change files. Identify one check I could run to confirm your explanation.

Read the tool activity and compare the answer with the project. If it fails, check the endpoint, the loaded model, the credentials, and the selected runtime before giving it a larger assignment. pancode doctor provides diagnostics; it does not certify model quality.

Separate conversation from worker models

The model answering you need not handle every delegated task. The terminal /settings groups its rows into seven areas below Recent & Pinned, with the conversation model under Models and worker defaults under Workers.

pancode configure --settings opens the shell menu, which uses eight sections instead: the conversation model is under Chat and worker defaults under Fleet. On the desktop, Settings has a Models page and a Fleet routes tab. Select a connection and model for conversation, then use worker defaults or profiles for delegated work.

  1. Terminal Settings open on Models: the copilot connection is healthy and used by chat+fleet, with Add a connection and Connect by URL below it; the chat connection is copilot, the chat model gpt-6-luna and the thinking level Low, and the side panel shows copilot's default model gpt-6-luna.

    01 Settings: the model answering you, under Models. Terminal · v0.9.2

  2. Terminal Settings open on Workers: the default fleet connection is copilot, the default fleet model gpt-6-luna, the thinking level Off and the worker location Automatic, followed by Profiles, Agent routes, Automatic routing and Machines; the side panel says the selected value comes from the user settings.yaml.

    02 Settings: the default worker's connection, model and thinking level, under Workers. Terminal · v0.9.1

Terminal settings keep the conversation model and the worker defaults apart.

This helps when exploring a repository and changing code have different requirements, or when you want to keep a workflow while evaluating another model. The benefit depends on the task and environment; this guide makes no claim that a particular combination is cheaper or faster.

A worker running on your machine against a remote model server is still a local worker: inference and tool execution are separate choices. To run the worker process on another machine, use the fleet configuration.

Choose capabilities deliberately

PanCode supports more than one kind of model interaction. Its Inception runtime serves Mercury diffusion language models as chat models with tool calling. Optional, experimental System One routes answer typed questions an agent asks through consult. Neither replaces a chat model or is required to get started.

Vision support depends on the model and the route. A model advertised as multimodal is not enough if the bridge does not carry images: the managed Codex, Pi, OpenCode, Claude Code, and Antigravity CLI bridges are text-only. Check what the route accepts before attaching a screenshot.

Know where information goes

  • PanCode runs locally, but a configured cloud model receives the input sent to that provider.
  • Local inference keeps inference on the selected server; tools, peers, plugins, and commands can still make network requests.
  • PanCode is free for individuals, small organizations (fewer than 100 people and under $1M revenue), and noncommercial research and teaching. Inference hardware, provider usage, and subscriptions can still cost money.

By Anthony Kougkas · PanCode

Continue with the documentation