Connect OpenCode to Orchestor
OpenCode is an open-source terminal agent that supports multiple model providers. Use Orchestor CLI to explore your brands, prompts, AI answers, and reports from OpenCode.
Quick start
- Install OpenCode
Install OpenCode in your terminal. See the OpenCode installation guide for requirements and other installation methods.
curl -fsSL https://opencode.ai/install | bash - Launch OpenCode in your project
Start OpenCode from the root of your project. Follow the first-run instructions to connect your model provider.
opencode - Install Orchestor CLI
Open another terminal to install Orchestor CLI and sign in. These commands are for macOS and Linux. See other installation methods for your platform.
curl -fsSL https://orchestor.io/install | sh orc auth loginFollow the browser instructions to sign in to Orchestor. If needed, create an account.
List your workspaces and select one. Replace
YOUR_WORKSPACE_IDwith an ID from the list.orc workspaces list orc workspace use YOUR_WORKSPACE_ID - Try a prompt
Return to OpenCode and try this prompt.
Use Orchestor CLI (orc) to list the brands in the current workspace. Include each brand's ID and name. Do not change any data.If OpenCode asks for permission to run a command, review it. A workspace without registered brands can return an empty list.
Orchestor platform access
Expand a section to learn more.
Example prompts
First choose a brand from the brand list and provide its name or ID.
Compare visibility
For the selected brand, compare visibility over the last 7 days with the previous 7 days.
Include the date ranges and reports you used. Identify any periods without data.
Do not change any data.Investigate citations
Review AI answers related to the selected brand and organize the cited domains and URLs.
Include the answer IDs that support your findings. Do not change any data.Plan next actions
Use the selected brand's reports and AI answers to identify 3 issues to investigate first.
Separate observed facts from proposed improvements and include supporting data.
Do not change any data.Tips
- Let skills guide command selection. The skills bundled with Orchestor CLI explain when to use
orc brands listto find brands,orc answers listto read answers, andorc reports visibility getto investigate visibility. Describe your goal so OpenCode can consult the relevant instructions. - Start with the task. Try “Investigate why this competitor gained visibility” or “Organize the pages being cited.” CLI workflows cover answer audits, competitor research, and other tasks. Include the target brand and date range to keep comparisons consistent.
- Discover additional MCP tools when you need them. Search with
search_tools, inspect inputs withget_tool_schema, and run the tool withexecute_tool. This discovery path is read-only. See the tool reference for details. - Launch from the project where you installed skills. Project-scoped OpenCode skills live in
.agents/skills. Startopencodefrom that project and checkorc workspace currentbefore working with data. - Check connections from the terminal. Use
orc auth status --jsonfor CLI authentication andopencode mcp listfor MCP registration. For CLI use in CI, follow the CI authentication guide and supply the API key through secret management.
FAQ
Troubleshooting
Build agents with Orchestor
Take what you explore in OpenCode into your own analysis agents and automation. Use Orchestor's MCP and CLI to bring brand visibility and AI answer research into your applications and workflows.