Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Anthoropic, OpenAI, GithubCopilot, Googleใฎใ‚ตใƒ–ใ‚นใ‚ฏใงใƒžใƒซใƒใƒ—ใƒญใƒใ‚คใƒ€OpenCodeใ‚’ๅˆฉ็”จใ™ใ‚‹

Last updated at Posted at 2026-01-10

ใฏใ˜ใ‚ใซ

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ใ‚’ๅˆฉ็”จใงใใพใ™ใ€‚

่จญๅฎšๆ‰‹้ †

  1. OpenCodeใ‚’่ตทๅ‹•ใ—ใ€/connect ใ‚ณใƒžใƒณใƒ‰ใ‚’ๅฎŸ่กŒ
/connect
  1. ใƒ—ใƒญใƒใ‚คใƒ€้ธๆŠž็”ป้ขใง Anthropic ใ‚’้ธๆŠž

  2. ่ช่จผๆ–นๆณ•ใง Claude Pro/Max ใ‚’้ธๆŠž

โ”Œ Select auth method
โ”‚
โ”‚ Claude Pro/Max
โ”‚ Create an API Key
โ”‚ Manually enter API Key
โ””
  1. ใƒ–ใƒฉใ‚ฆใ‚ถใŒ้–‹ใใฎใงใ€Anthropicใ‚ขใ‚ซใ‚ฆใƒณใƒˆใง่ช่จผ

  2. /models ใ‚ณใƒžใƒณใƒ‰ใงใƒขใƒ‡ใƒซใ‚’้ธๆŠž

/models

OpenAI (ChatGPT Plus/Pro) Subscriptions

ChatGPT Plus/Proใ‚ตใƒ–ใ‚นใ‚ฏใƒชใƒ—ใ‚ทใƒงใƒณใ‚’ๆŒใฃใฆใ„ใ‚‹ๅ ดๅˆใ€opencode-openai-codex-auth ใƒ—ใƒฉใ‚ฐใ‚คใƒณใ‚’ไฝฟ็”จใ—ใฆOpenCodeใ‹ใ‚‰GPTใƒขใƒ‡ใƒซใซใ‚ขใ‚ฏใ‚ปใ‚นใงใใพใ™ใ€‚

่จญๅฎšๆ‰‹้ †

  1. ใƒ—ใƒฉใ‚ฐใ‚คใƒณใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซ
npx -y opencode-openai-codex-auth@latest
  1. OpenCodeใ‚’่ตทๅ‹•ใ—ใ€่ช่จผใ‚’ๅฎŸ่กŒ
opencode auth login
  1. ใƒ–ใƒฉใ‚ฆใ‚ถใŒ้–‹ใใฎใงใ€OpenAIใ‚ขใ‚ซใ‚ฆใƒณใƒˆ๏ผˆChatGPT Plus/Pro๏ผ‰ใง่ช่จผ

  2. /models ใ‚ณใƒžใƒณใƒ‰ใงใƒขใƒ‡ใƒซใ‚’้ธๆŠž

/models

ๅˆฉ็”จๅฏ่ƒฝใชใƒขใƒ‡ใƒซ

  • GPT-5.2
  • GPT-5.2 Codex
  • GPT-5.1
  • Codex / Codex Max / Codex Mini

GitHub Copilot Subscriptions

GitHub Copilotใ‚ตใƒ–ใ‚นใ‚ฏใƒชใƒ—ใ‚ทใƒงใƒณใ‚’ๆŒใฃใฆใ„ใ‚‹ๅ ดๅˆใ€ใƒ‡ใƒใ‚คใ‚นใƒ•ใƒญใƒผ่ช่จผใงOpenCodeใ‚’ๅˆฉ็”จใงใใพใ™ใ€‚

่จญๅฎšๆ‰‹้ †

  1. OpenCodeใ‚’่ตทๅ‹•ใ—ใ€/connect ใ‚ณใƒžใƒณใƒ‰ใ‚’ๅฎŸ่กŒ
/connect
  1. ใƒ—ใƒญใƒใ‚คใƒ€้ธๆŠž็”ป้ขใง GitHub Copilot ใ‚’้ธๆŠž

  2. ่กจ็คบใ•ใ‚ŒใŸใ‚ณใƒผใƒ‰ใ‚’็ขบ่ช

โ”Œ Login with GitHub Copilot
โ”‚
โ”‚ https://github.com/login/device
โ”‚
โ”‚ Enter code: XXXX-XXXX
โ”‚
โ”” Waiting for authorization...
  1. ใƒ–ใƒฉใ‚ฆใ‚ถใง https://github.com/login/device ใซใ‚ขใ‚ฏใ‚ปใ‚นใ—ใ€่กจ็คบใ•ใ‚ŒใŸใ‚ณใƒผใƒ‰ใ‚’ๅ…ฅๅŠ›

  2. GitHubใ‚ขใ‚ซใ‚ฆใƒณใƒˆใง่ช่จผใ‚’ๅฎŒไบ†

  3. /models ใ‚ณใƒžใƒณใƒ‰ใงใƒขใƒ‡ใƒซใ‚’้ธๆŠž

/models

Google (Gemini/Claude) Subscriptions

Google One AI Premiumใ‚„Google Workspaceใชใฉใฎใ‚ตใƒ–ใ‚นใ‚ฏใƒชใƒ—ใ‚ทใƒงใƒณใ‚’ๆŒใฃใฆใ„ใ‚‹ๅ ดๅˆใ€Antigravity่ช่จผใงOpenCodeใ‚’ๅˆฉ็”จใงใใพใ™ใ€‚
ใ“ใฎใƒ—ใƒฉใ‚ฐใ‚คใƒณใ‚’ไฝฟใ†ใจใ€Geminiใƒขใƒ‡ใƒซใ ใ‘ใงใชใClaude proxyใƒขใƒ‡ใƒซ๏ผˆgemini-claude-opus-4-5-thinkingใชใฉ๏ผ‰ใซใ‚‚ใ‚ขใ‚ฏใ‚ปใ‚นๅฏ่ƒฝใงใ™ใ€‚

่จญๅฎšๆ‰‹้ †

  1. ใƒ—ใƒฉใ‚ฐใ‚คใƒณใ‚’่จญๅฎšใƒ•ใ‚กใ‚คใƒซใซ่ฟฝๅŠ 

~/.config/opencode/config.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-google-antigravity-auth"]
}
  1. OpenCodeใ‚’่ตทๅ‹•ใ—ใ€่ช่จผใ‚’ๅฎŸ่กŒ
opencode auth login
  1. ใƒ—ใƒญใƒใ‚คใƒ€้ธๆŠž็”ป้ขใง Google ใ‚’้ธๆŠž

  2. ่ช่จผๆ–นๆณ•ใง OAuth with Google (Antigravity) ใ‚’้ธๆŠž

โ”Œ Select auth method
โ”‚
โ”‚ OAuth with Google (Antigravity)
โ”‚ OAuth with Google (Gemini CLI)
โ”‚ Manually enter API Key
โ””
  1. ใƒ–ใƒฉใ‚ฆใ‚ถใŒ้–‹ใใฎใงใ€Googleใ‚ขใ‚ซใ‚ฆใƒณใƒˆใง่ช่จผ

  2. /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ใฎใ‚ˆใ†ใซใ€ใ‚ตใƒ–ใ‚นใ‚ฏใƒชใƒ—ใ‚ทใƒงใƒณใงใฉใ“ใพใงไฝฟใฃใฆใ‚ˆใ„ใฎใ‹ใฏๆตๅ‹•็š„ใซๅค‰ๅŒ–ใ™ใ‚‹ใจๆ€ใ†ใฎใงใ™ใŒใ€
ใƒžใƒซใƒใƒ—ใƒญใƒใ‚คใƒ€ใงใ‚‚ไฝฟใ„ใ‚„ใ™ใ„็’ฐๅขƒใŒ็ถšใใจ่‰ฏใ„ใชใจๆ€ใฃใฆใ„ใพใ™ใ€‚

ๅ‚่€ƒใƒชใƒณใ‚ฏ

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

@kei1-dev's pickup articles

kei1-dev

@kei1-dev(kei1)

ๆกˆไปถใ€่ถฃๅ‘ณใƒ‰ใƒชใƒ–ใƒณใ€‚ ่ปŠ่ผชใฎๅ†็™บๆ˜Žใ€ใ‚„ใฃใฆใฟใŸ็ณป Welcome
beex-inc
BeeXใงใฏใ‚ฏใƒฉใ‚ฆใƒ‰ใƒใ‚คใƒ†ใ‚ฃใƒ–ใ‚ขใƒ—ใƒช้–‹็™บใ€ไผๆฅญใฎๅŸบๅนนใ‚ฏใƒฉใ‚ฆใƒ‰ๅŸบ็›คๆง‹็ฏ‰ใ€ใ‚ทใ‚นใƒ†ใƒ ็งป่กŒใ€้‹็”จไฟๅฎˆใ‚’่กŒใฃใฆใ„ใพใ™ใ€‚ 2025ๅนดAdventใ‚ซใƒฌใƒณใƒ€ใƒผ๏ผšhttps://qiita.com/advent-calendar/2025/beex 2024ๅนดAdventใ‚ซใƒฌใƒณใƒ€ใƒผ๏ผšhttps://qiita.com/advent-calendar/2024/beex

Today's trending articles

Comments

No comments

Let's comment your feelings that are more than good

Being held Article posting campaign

1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Login to continue?

Login or Sign up with social account

Login or Sign up with your email address