ใฏใใใซ
ClaudeใOpenAI, GithubCopilotใชใฉใฎใณใผใใฃใณใฐใจใผใธใงใณใ(ClaudeCode, Codex, Github Copilot)ใไฝฟใๅใใฆๅฉ็จใใใฎใ้ขๅ&
Planใขใผใใๅฉ็จใงใใใณใผใใฃใณใฐใจใผใธใงใณใใๅฉ็จใใใใจๆใใOpenCodeใงใใซใใใญใใคใใ่จญๅฎใใ็ตฑไธ็ใซๅฉ็จใใๆนๆณใ่ชฟในใพใใใ
ๅๅฅใตใในใฏใชใใทใงใณใใจใฎOpenCode่จญๅฎๆนๆณ
Anthoropic Subscriptions
1/10็พๅจ AnthoropicใOpenCodeใใใฎใตใในใฏใชใใทใงใณใขใฏใปในใๅถ้ใใใใใไปฅไธใฎใจใฉใผใ่กจ็คบใใใไฝฟ็จใงใใพใใ
This credential is only authorized for use with Claude Code and cannot be used for other API requests.
Claude Pro/Maxใตใในใฏใชใใทใงใณใๆใฃใฆใใๅ ดๅใOAuth่ช่จผใงOpenCodeใๅฉ็จใงใใพใใ
่จญๅฎๆ้
- OpenCodeใ่ตทๅใใ
/connectใณใใณใใๅฎ่ก
/connect
-
ใใญใใคใ้ธๆ็ป้ขใง Anthropic ใ้ธๆ
-
่ช่จผๆนๆณใง Claude Pro/Max ใ้ธๆ
โ Select auth method
โ
โ Claude Pro/Max
โ Create an API Key
โ Manually enter API Key
โ
-
ใใฉใฆใถใ้ใใฎใงใAnthropicใขใซใฆใณใใง่ช่จผ
-
/modelsใณใใณใใงใขใใซใ้ธๆ
/models
OpenAI (ChatGPT Plus/Pro) Subscriptions
ChatGPT Plus/Proใตใในใฏใชใใทใงใณใๆใฃใฆใใๅ ดๅใopencode-openai-codex-auth ใใฉใฐใคใณใไฝฟ็จใใฆOpenCodeใใGPTใขใใซใซใขใฏใปในใงใใพใใ
่จญๅฎๆ้
- ใใฉใฐใคใณใใคใณในใใผใซ
npx -y opencode-openai-codex-auth@latest
- OpenCodeใ่ตทๅใใ่ช่จผใๅฎ่ก
opencode auth login
-
ใใฉใฆใถใ้ใใฎใงใOpenAIใขใซใฆใณใ๏ผChatGPT Plus/Pro๏ผใง่ช่จผ
-
/modelsใณใใณใใงใขใใซใ้ธๆ
/models
ๅฉ็จๅฏ่ฝใชใขใใซ
- GPT-5.2
- GPT-5.2 Codex
- GPT-5.1
- Codex / Codex Max / Codex Mini
GitHub Copilot Subscriptions
GitHub Copilotใตใในใฏใชใใทใงใณใๆใฃใฆใใๅ ดๅใใใใคในใใญใผ่ช่จผใงOpenCodeใๅฉ็จใงใใพใใ
่จญๅฎๆ้
- OpenCodeใ่ตทๅใใ
/connectใณใใณใใๅฎ่ก
/connect
-
ใใญใใคใ้ธๆ็ป้ขใง GitHub Copilot ใ้ธๆ
-
่กจ็คบใใใใณใผใใ็ขบ่ช
โ Login with GitHub Copilot
โ
โ https://github.com/login/device
โ
โ Enter code: XXXX-XXXX
โ
โ Waiting for authorization...
-
ใใฉใฆใถใง https://github.com/login/device ใซใขใฏใปในใใ่กจ็คบใใใใณใผใใๅ ฅๅ
-
GitHubใขใซใฆใณใใง่ช่จผใๅฎไบ
-
/modelsใณใใณใใงใขใใซใ้ธๆ
/models
Google (Gemini/Claude) Subscriptions
Google One AI PremiumใGoogle Workspaceใชใฉใฎใตใในใฏใชใใทใงใณใๆใฃใฆใใๅ ดๅใAntigravity่ช่จผใงOpenCodeใๅฉ็จใงใใพใใ
ใใฎใใฉใฐใคใณใไฝฟใใจใGeminiใขใใซใ ใใงใชใClaude proxyใขใใซ๏ผgemini-claude-opus-4-5-thinkingใชใฉ๏ผใซใใขใฏใปในๅฏ่ฝใงใใ
่จญๅฎๆ้
- ใใฉใฐใคใณใ่จญๅฎใใกใคใซใซ่ฟฝๅ
~/.config/opencode/config.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-google-antigravity-auth"]
}
- OpenCodeใ่ตทๅใใ่ช่จผใๅฎ่ก
opencode auth login
-
ใใญใใคใ้ธๆ็ป้ขใง Google ใ้ธๆ
-
่ช่จผๆนๆณใง OAuth with Google (Antigravity) ใ้ธๆ
โ Select auth method
โ
โ OAuth with Google (Antigravity)
โ OAuth with Google (Gemini CLI)
โ Manually enter API Key
โ
-
ใใฉใฆใถใ้ใใฎใงใGoogleใขใซใฆใณใใง่ช่จผ
-
/modelsใณใใณใใงใขใใซใ้ธๆ
/models
ใใญใใคใใผ่จญๅฎไพ
ใขใใซใๅฉ็จใใใซใฏใ~/.config/opencode/opencode.json ใซใใญใใคใใผ่จญๅฎใ่ฟฝๅ ใใๅฟ
่ฆใใใใพใ๏ผ
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-google-antigravity-auth"],
"provider": {
"google": {
"npm": "@ai-sdk/google",
"models": {
"gemini-3-pro-preview": {
"id": "gemini-3-pro-preview",
"name": "3 Pro",
"reasoning": true,
"limit": { "context": 1000000, "output": 64000 },
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
},
"variants": {
"low": { "options": { "thinkingConfig": { "thinkingLevel": "low", "includeThoughts": true } } },
"medium": { "options": { "thinkingConfig": { "thinkingLevel": "medium", "includeThoughts": true } } },
"high": { "options": { "thinkingConfig": { "thinkingLevel": "high", "includeThoughts": true } } }
}
},
"gemini-3-flash": {
"id": "gemini-3-flash",
"name": "3 Flash",
"reasoning": true,
"limit": { "context": 1048576, "output": 65536 },
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
},
"variants": {
"low": { "options": { "thinkingConfig": { "thinkingLevel": "low", "includeThoughts": true } } },
"medium": { "options": { "thinkingConfig": { "thinkingLevel": "medium", "includeThoughts": true } } },
"high": { "options": { "thinkingConfig": { "thinkingLevel": "high", "includeThoughts": true } } }
}
},
"gemini-2.5-pro": {
"id": "gemini-2.5-pro",
"name": "2.5 Pro",
"reasoning": true,
"limit": { "context": 1000000, "output": 64000 },
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
}
},
"gemini-2.5-flash": {
"id": "gemini-2.5-flash",
"name": "2.5 Flash",
"reasoning": true,
"limit": { "context": 1048576, "output": 65536 },
"modalities": {
"input": ["text", "image", "video", "audio", "pdf"],
"output": ["text"]
}
},
"gemini-claude-sonnet-4-5-thinking": {
"id": "gemini-claude-sonnet-4-5-thinking",
"name": "Sonnet 4.5",
"reasoning": true,
"limit": { "context": 200000, "output": 64000 },
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
},
"variants": {
"low": { "options": { "thinkingConfig": { "thinkingBudget": 4000, "includeThoughts": true } } },
"medium": { "options": { "thinkingConfig": { "thinkingBudget": 16000, "includeThoughts": true } } },
"high": { "options": { "thinkingConfig": { "thinkingBudget": 32000, "includeThoughts": true } } }
}
},
"gemini-claude-opus-4-5-thinking": {
"id": "gemini-claude-opus-4-5-thinking",
"name": "Opus 4.5",
"reasoning": true,
"limit": { "context": 200000, "output": 64000 },
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
},
"variants": {
"low": { "options": { "thinkingConfig": { "thinkingBudget": 4000, "includeThoughts": true } } },
"medium": { "options": { "thinkingConfig": { "thinkingBudget": 16000, "includeThoughts": true } } },
"high": { "options": { "thinkingConfig": { "thinkingBudget": 32000, "includeThoughts": true } } }
}
}
}
}
}
}
ใใซใใใญใใคใใฎๆดป็จ
ใใญใใคใใฎๅใๆฟใ
่คๆฐใฎใใญใใคใใ่จญๅฎใใๅพใฏใ/models ใณใใณใใงใใคใงใใใญใใคใใใขใใซใๅใๆฟใใใใจใใงใใพใใ
/models
ใณใใณใๅฎ่กๆใฎ็ขบ่ชใ็กๅนๅ
ใใใฉใซใใงใฏใOpenCodeใฏใใกใคใซ็ทจ้ใใณใใณใๅฎ่กๆใซใฆใผใถใผใฎ็ขบ่ชใๆฑใใพใใ
็ขบ่ชใชใใง่ชๅๅฎ่กใใใใซใฏใ~/.config/opencode/opencode.json ใซไปฅไธใ่ฟฝๅ ใใพใ๏ผ
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"*": "allow",
"external_directory": "allow"
}
}
| ่จญๅฎ | ่ชฌๆ |
|---|---|
"*": "allow" |
ใในใฆใฎใใผใซ๏ผbashใedit็ญ๏ผใฎ็ขบ่ชใในใญใใ |
"external_directory": "allow" |
ไฝๆฅญใใฃใฌใฏใใชๅคใฎใใกใคใซๆไฝใ็ขบ่ชใชใใง่จฑๅฏ |
ใใฎ่จญๅฎใฏใปใญใฅใชใใฃใชในใฏใไผดใใพใใใในใฆใฎๆไฝใ็ขบ่ชใชใใงๅฎ่กใใใใใใไฟก้ ผใงใใ็ฐๅขใงใฎใฟไฝฟ็จใใฆใใ ใใใ
ใพใจใ
Opencodeใไฝฟใฃใ่คๆฐใใญใใคใใฎ็ตฑๅๅฉ็จใซใคใใฆใพใจใใพใใใ
่คๆฐใฎใใญใใคใใๅฅ็ดใใใใฉใไฝฟใๅใใ้ขๅใช่ชๅใซใฏๅฟ
่ฆใช่จญๅฎใใงใใใฎใงใๅไบบ็ใซใฏๆบ่ถณใใฆใใพใใ
Anthoropicใฎใใใซใใตใในใฏใชใใทใงใณใงใฉใใพใงไฝฟใฃใฆใใใฎใใฏๆตๅ็ใซๅคๅใใใจๆใใฎใงใใใ
ใใซใใใญใใคใใงใไฝฟใใใใ็ฐๅขใ็ถใใจ่ฏใใชใจๆใฃใฆใใพใใ
Comments
Let's comment your feelings that are more than good