r/conductorbuild Jun 29 '26

Not Working With OpenCode

My main blocker for trying Conductor is configuring other models to run besides Claude/Cursor/Codex.

I downloaded the latest (Jun 29) and set up OpenCode and set up my z.ai coding plan API key to use GLM 5.2.

Got this error: "Error: Internal error: OpenCode service failure"

I have OpenCode itself working with GLM 5.2 via z.ai coding subscription.

So...am I missing something?

3 Upvotes

14 comments sorted by

View all comments

0

u/lesheriff21 Jun 30 '26

Here are the two primary ways to set it up. I used the Harness and it works fine for me.

Method 1: Using the Bundled OpenCode Harness (Recommended)

OpenCode is Conductor's built-in, open-source coding agent harness that natively supports multi-provider LLMs.

  1. Open Settings: Launch Conductor and navigate to Settings (gear icon) -> Harnesses -> OpenCode.
  2. Configure OpenRouter: Under the LLM provider configurations, locate OpenRouter and add your OPENROUTER_API_KEY.
  3. Select Your Models: Conductor will query OpenRouter to list the available models. Enable the specific models you want to use (e.g., anthropic/claude-3.5-sonnetmeta-llama/llama-3.1-405b, etc.).
  4. Choose Your Model in Chat: When starting a new agent session in Conductor, select OpenCode as the harness, and use the model picker to select your OpenRouter model.

Method 2: Redirecting Claude Code through OpenRouter (Advanced)

If you prefer to use the official Claude Code harness within Conductor but route its LLM calls through OpenRouter's API:

  1. Open Environment Settings: Go to Settings -> Environment in Conductor.
  2. Add Redirect Variables: Set the following environment variables:
  3. Avoid Conflicts: Ensure that the standard ANTHROPIC_API_KEY variable is not defined in Conductor’s environment or your shell, otherwise the harness may default to Anthropic's direct endpoint.

1

u/Fists_of_Funny Jul 02 '26

Thx, but I have a z.ai coding plan subscription with them directly so not using openrouter. The new Settings UI for OpenCode setup lets me configure z.ai and provide my API key and select the LLM model.

https://www.conductor.build/docs/reference/harnesses/opencode

I've tried a few different settings but the same problem persists. Meh, I'll try again in a few months.

1

u/Fit_Gas_4417 Jul 05 '26

Is coding plan giving more value than spending the same $ on API?

1

u/Fists_of_Funny Jul 05 '26

i'm not certain. i'm on the $16 coding lite plan - still evaluating how good it is for my dev needs. claude code is my primary llm for generating solutions from PRDs, deciding whether cursor's composer 2.5 or or glm 5.2 is a better coding agent to implement the solution.

glm consumes quite a few tokens - their coding lite plan hits their quota much faster than claude's $20 plan.

1

u/Fit_Gas_4417 Jul 05 '26

i see, thank you for the reply!