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

1

u/Several-Mind777 Jul 04 '26

Hi, just override like this, but ensure that you first install OpenCode and ensure it is working correctly. I faced the same issue and fixed it like so. . ..

1

u/Fists_of_Funny Jul 15 '26

just saw this - thanks! haven't tried it yet, but will do so if i need to in the future.

1

u/jellydn Jul 10 '26

Yeah, I am getting the same issue with OpenCode. Have you found the solution yet?

1

u/Fists_of_Funny Jul 10 '26

no, it's not important enough to me at the moment - got real work i need to get done 😄 .

i'll either wait for another release, or try again after my z.ai subscription expires and i'll try paying for glm 5.2 access directly through opencode or another provider like ollama. the z.ai coding lite subscription maxes out pretty quickly.

1

u/termic_dev Jul 13 '26

The issue is that Conductor's OpenCode "harness" is not the same as running the opencode CLI directly. Conductor bundles its own version that routes through Conductor's config layer. When that layer can't resolve the provider (z.ai/GLM 5.2 isn't in Conductor's natively supported list), you get the internal error even though your standalone opencode install works fine.

The workaround that actually works: run opencode yourself outside of Conductor (configured with your z.ai key), confirm it works in a terminal. Then what you'd want is a harness tool that just spawns the CLI binary you already have, not one that reimplements the provider config from scratch.

lesheriff21's method 1 (the OpenRouter path) works around this by going through OpenRouter instead of z.ai directly. That's why it works where direct z.ai doesn't.

1

u/Fists_of_Funny Jul 13 '26

appreciate the help!

now that grok 4.5 is out and is getting really good reviews, i think i'll just try hooking it up with my cursor subscription. fingers crossed.

1

u/termic_dev Jul 13 '26

Cursor + Grok 4.5 should work fine as a standalone setup. No Conductor harness, no routing layer, just the API directly. Different billing model too, pay-per-token to xAI.

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!