opencode
opencode copied to clipboard
Command: opencode agent create fails
Description
The command opencode agent create fails after inserting the description with the error:
"LLM failed to generate agent: sdk.responses is not a function. (In 'sdk.responses(modelID)', 'sdk.responses' is undefined)"
$ opencode agent create --print-logs
INFO 2026-01-08T11:50:25 +207ms service=default version=1.1.6 args=["agent","create","--print-logs"] opencode
INFO 2026-01-08T11:50:25 +0ms service=default directory=/home/clt/Projects/Allitude/customer-position/customer-position-web creating instance
INFO 2026-01-08T11:50:25 +0ms service=project directory=/home/clt/Projects/Allitude/customer-position/customer-position-web fromDirectory
┌ Create agent
│
◇ Location
│ Global
│
◇ Description
│ Senior Java architect specializing in enterprise-grade applications, Spring ecosystem, and cloud-native development. Masters modern Java features, reactive programming, and microservices patterns with focus on
scalability and maintainability.
│
INFO 2026-01-08T11:50:38 +13084ms service=config path=/home/clt/.config/opencode/config.json loading
INFO 2026-01-08T11:50:38 +1ms service=config path=/home/clt/.config/opencode/opencode.json loading
INFO 2026-01-08T11:50:38 +0ms service=config path=/home/clt/.config/opencode/opencode.jsonc loading
INFO 2026-01-08T11:50:38 +3ms service=bun cmd=["/home/clt/.opencode/bin/opencode","add","@opencode-ai/[email protected]","--exact"] cwd=/home/clt/.config/opencode running
INFO 2026-01-08T11:50:38 +5ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/[email protected]
[1.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-08T11:50:38 +0ms service=bun cmd=["/home/clt/.opencode/bin/opencode","install"] cwd=/home/clt/.config/opencode running
INFO 2026-01-08T11:50:38 +1ms service=config path=/home/clt/.opencode/opencode.jsonc loading
INFO 2026-01-08T11:50:38 +1ms service=config path=/home/clt/.opencode/opencode.json loading
INFO 2026-01-08T11:50:38 +5ms service=bun cmd=["/home/clt/.opencode/bin/opencode","add","@opencode-ai/[email protected]","--exact"] cwd=/home/clt/.opencode running
INFO 2026-01-08T11:50:38 +2ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-08T11:50:38 +5ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/[email protected]
[2.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-08T11:50:38 +1ms service=bun cmd=["/home/clt/.opencode/bin/opencode","install"] cwd=/home/clt/.opencode running
INFO 2026-01-08T11:50:38 +4ms service=provider status=started state
INFO 2026-01-08T11:50:38 +2ms service=models.dev file={} refreshing
INFO 2026-01-08T11:50:38 +1ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-08T11:50:38 +9ms service=provider init
INFO 2026-01-08T11:50:38 +4ms service=plugin [email protected] loading plugin
INFO 2026-01-08T11:50:38 +2ms service=plugin [email protected] loading plugin
INFO 2026-01-08T11:50:38 +20ms service=provider providerID=azure found
INFO 2026-01-08T11:50:38 +0ms service=provider providerID=openai found
INFO 2026-01-08T11:50:38 +0ms service=provider providerID=opencode found
INFO 2026-01-08T11:50:38 +0ms service=provider status=completed duration=38 state
INFO 2026-01-08T11:50:38 +2ms service=provider status=started providerID=azure getSDK
INFO 2026-01-08T11:50:38 +0ms service=provider providerID=azure pkg=@ai-sdk/anthropic using bundled provider
INFO 2026-01-08T11:50:38 +0ms service=provider status=completed duration=0 providerID=azure getSDK
■ LLM failed to generate agent: sdk.responses is not a function. (In 'sdk.responses(modelID)', 'sdk.responses' is undefined)
ERROR 2026-01-08T11:50:38 +5ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError
at <anonymous> (src/cli/cmd/agent.ts:127:17)
at processTicksAndRejections (native:7:39) fatal
Plugins
No response
OpenCode version
1.1.6
Steps to reproduce
- launch opencode agent create
- insert the agent description
Screenshot and/or share link
Operating System
ubuntu in wsl
Terminal
Wezterm