本文へスキップ

OpenCode でオープンモデルを使う

RightNow AIOpen modelsOpenCode でオープンモデルを使う 更新日

このページの内容

オープンモデルが OpenCode の既存のモデルの横に表示されます。

設定後
Text
設定によって OpenCode のどこにオープンモデルが入るかの図。

OpenCode の中で、既存のモデルはそのまま残り、その横にオープンモデルが並びます。

設定

agent-prompt.md
Text
Set up the open-models service in this coding agent for me. Read https://www.rightnowai.co/docs/open-models/guides/coding-agents.md and follow it step by step. If you cannot open links, run `npx -y @runinfra/cli@latest --help` and follow its FOR CODING AGENTS section. I approve sign-in in my browser. Before you install anything, change this agent's settings or spend money, show me the plan and wait for my yes.
  1. プロンプトを貼り付ける

    エージェントのチャットに貼り付けます。

  2. サインインを承認する

    エージェントが示すリンクを開き、コードを入力して Approve を選びます。承認するのは、自分のエージェントが今示したコードだけにしてください。

  3. プランに同意する

    エージェントが、何を変えるかと、短い有料チェック 1 回分を誰が払うかを示します。

設定の流れ。

すべての手順はコーディングエージェントを設定するを参照してください。

開始

開始
OpenCode を再起動します。
モデルを選ぶ
/models でオープンモデルを選びます。

元に戻す

エージェントにオープンモデルの接続解除を頼みます。ほかのプロバイダーはそのまま残ります。