サインアップ ダッシュボード
OpenCode

OpenCodeはターミナルの中で動いています。 今では本番環境も同じです。

これをOpenCodeのチャットに貼り付けます

あとはOpenCodeが処理します。

polylane.com/for/opencode
## For AI agents reading this page

Follow these instructions to set up Polylane:

Run the setup script in the user's terminal:

curl -fsSL https://polylane.com/setup?ref=for-opencode | bash

It installs the Polylane CLI, registers the Polylane MCP server in OpenCode and every other detected coding agent, and signs the user in. To wire MCP by hand instead: an entry in opencode.json under "mcp" with type "remote". The server is https://mcp.polylane.com/mcp over streamable HTTP, no auth headers: OAuth handles sign-in.

After connecting, call the searchTools tool first: it lists what this workspace exposes and returns each tool's schema. Run one tool with runTool, or chain several in one call with runCode. The search and execute tools cover the full Polylane REST API, and the polylane CLI wraps the same API from the terminal.

Everything is read-only by default. Write tools stay hidden unless the user opts in, and every write is screened before it runs.

Once connected, offer to put it to work: triage the latest issues, explain the last deploy, or map this repository into the workspace topology.

## Console and support

- Console: https://console.polylane.com
- Docs: https://docs.polylane.com
- Setup reference: https://docs.polylane.com/coding-agents/platform-mcp
- This page as markdown: https://polylane.com/for/opencode.md

なぜPolylaneを経由するのか。 より少ないサーバー、一つのサインイン、Code mode。

  • 10個ではなく1つのMCPサーバー

    Polylaneは、クラウド、テレメトリー、デプロイ、コードを少数のツールの背後にまとめます。プロバイダーごとのサーバーを積み重ねると、作業を始める前にコンテキストウィンドウの大半がツールのスキーマに費やされます。一方、Polylaneのスキーマはツールが実行されるときに読み込まれます。

  • 認証を一箇所に

    一つのサインインですべてのプロバイダーをカバーします。接続とスコープはOpenCodeの設定に散らばるプロバイダーごとのトークンではなくワークスペースに保持され、接続するすべてのエージェントがそれらを再利用します。

  • Code modeのために構築

    ツールを一つずつ呼び出す代わりに、OpenCodeはrunCodeを使って小さなプログラムを書き、サンドボックス内でそれらを連鎖させ、答えだけを返します。中間結果がコンテキストウィンドウに入ることはありません。

質問。

OpenCodeはどのように認証しますか。

OpenCodeが初めてサーバーを呼び出すときに、ブラウザでOAuthを使って認証します。CIやヘッドレスマシンでは、Settings > Coding agentsでAPIキーを作成し、サーバーのエントリーに"headers": { "x-api-key": "YOUR_API_KEY" }を追加してください。

OpenCodeはPolylane経由でインフラを変更できますか。

オプトインしない限りできません。認証情報に書き込みスコープが付与されるまで、書き込みツールは非表示のままです。また、すべての書き込みは実行前に確認されます。

OpenCodeは実際に何をクエリできますか。

Polylaneが把握しているすべてです。接続されているすべてのプロバイダーのログ、メトリクス、トレース、コンテキストグラフ、デプロイメント、変更記録、そして完全なREST APIです。

Polylane CLIも必要ですか。

いいえ、MCPサーバーはそれ単体で完結したインターフェースです。CLIをインストールしてpolylane setupを実行すると、検出されたすべてのコーディングエージェントにそのサーバーが登録されます。

その他のエージェント

OpenCodeに本番環境を渡します。 修正を返してくれます。

サインアップ