Use your GitHub Copilot subscription in other coding agents
Updated
You can use your GitHub Copilot subscription outside of VS Code. OpenCode signs in with your GitHub account and runs on your Copilot plan, OpenAI’s Codex extension offers “Sign in with Copilot” on the higher plans, and Contenox Harness offers the same sign-in once you turn on Allow unofficial sign-ins in its settings. GitHub has not approved Contenox Harness for Copilot, so GitHub may block that sign-in or limit your account. Usage draws on your plan’s AI Credits, like Copilot chat does.
Use your Copilot subscription with your agent#
| Agent | Supported? | How | Note |
|---|---|---|---|
| Claude | GitHub-hosted agent | Choose the Claude coding agent for a task on GitHub if your plan and policies allow it. | GitHub supplies the hosted agent through the Claude Agent SDK. Standalone Claude Code has its own sign-in. |
| Codex | GitHub-hosted agent or VS Code extension | Choose Codex for a task on GitHub, or Sign in with Copilot in the Codex VS Code extension. | The extension sign-in requires Copilot Pro+ or Max. GitHub’s hosted agent has its own eligibility and policy controls. |
| OpenCode | Yes | /connect → GitHub Copilot, then authorize the device code |
Account needs Copilot Chat access. |
| Contenox Harness | Yes, after enabling unofficial sign-ins | Settings → Allow unofficial sign-ins, then Backends → Providers → GitHub Copilot | Not approved by GitHub; use at your own risk. |
OpenCode#
In the OpenCode terminal, enter /connect, select GitHub Copilot, and choose GitHub.com or your GitHub Enterprise deployment. Open the verification URL shown, enter the device code, and authorize the connection. Use /models to see the models available to that account. You need Copilot Chat access. OpenCode’s Copilot instructions
Codex#
In the Codex extension for VS Code, choose Sign in with Copilot. GitHub’s docs limit this to Copilot Pro+ and Max subscribers, and say all usage is subject to GitHub’s rate limits and billing. The Codex CLI signs in with ChatGPT or an API key instead; see ChatGPT subscription.
How is it billed?#
Since 1 June 2026, Copilot chat and agent use is billed in AI Credits, counted by the tokens a model processes. Expect use from another agent to count the same way: tokens against your included credits, and when they are gone, you pay for more within a budget you set, or wait for the monthly reset. There is no fallback to a cheaper model.
Agent sessions use far more tokens than chat, so they use credits quickly. See AI coding costs for why, and check your usage in your GitHub billing settings during the first days.
Code completions in your editor are not billed in credits.
GitHub’s own agents on your plan#
Your Copilot subscription also pays for agents that run on GitHub itself, not on your computer: Copilot’s cloud agent, and in public preview the Claude and Codex coding agents. They work from an issue and come back with a pull request. These sessions use GitHub Actions minutes as well as AI credits.
Common problems#
- A model is missing or refused: it needs a higher plan, often Pro+.
- Your organization’s plan doesn’t work outside VS Code: on Business and Enterprise, organization policies decide which agents and models are allowed. Ask your admin.
- Requests stop mid-month: your AI Credits are used up. Set a budget in your billing settings, or wait for the reset.
Contenox Harness#
Contenox Harness can sign in with your GitHub account and list Copilot’s models in the Model chip next to any other provider you connected. The sign-in is off by default, because GitHub has not approved Contenox Harness for Copilot: the app labels it Unofficial · your Copilot plan, and GitHub may block it or limit your account.
-
Open Settings, find Unofficial sign-ins and turn on Allow unofficial sign-ins.

-
Open Backends → Providers and choose GitHub Copilot.
-
Sign in with GitHub in your browser and approve access.
-
Pick a Copilot model in the Model chip on the message box.
Related#
AI coding subscription comparison: Copilot next to ChatGPT, Claude and othersAI coding subscription comparison: which plan works whereAI coding subscription comparison: ChatGPT, Claude, Copilot, Cursor, Google, GLM, Kimi, MiniMax and OpenCode Go, the tools each plan works in and how limits work.
Which AI provider for coding?Which AI provider for coding agents? A decision guideWhich AI provider for coding agents: subscription or API key, cloud account or local, and which providers work in Claude Code, Codex CLI and OpenCode.
GitHub Copilot alternativeGitHub Copilot alternative: options after the credit changeLooking for a GitHub Copilot alternative? What changed with AI Credits, what to try first inside Copilot, the main alternatives, and who should stay on Copilot.
ChatGPT subscriptionUse your ChatGPT subscription for a coding agent | ContenoxUse your ChatGPT subscription for a coding agent. Set up device sign-in in Contenox or use Codex on desktop, in an editor or in the terminal. Check plan limits.
AI coding costsAI coding costs: why agents burn tokens and how to cut itAI coding costs explained: why one agent session can send hundreds of millions of tokens, what sessions really cost, and the habits that cut the bill.
Anthropic (Claude)Claude coding agent on Windows: API key setup | ContenoxRun a Claude coding agent on Windows: Claude Code with a subscription or API key, OpenCode with a key, why Codex can't, plus models, billing and key errors.
GeminiGemini coding agent: API key, free tier and setup | ContenoxSet up a Gemini coding agent: AI Studio key in OpenCode, Antigravity CLI or Contenox Harness, why Claude Code and Codex can't, free-tier data use, models and 429 fixes.
DeepSeekDeepSeek coding agent: API key, models and setup | ContenoxSet up a DeepSeek coding agent: DeepSeek Harness, or your API key in OpenCode, Codex CLI, Claude Code or Contenox Harness, plus models, errors and where your code goes.