Skip to content

Crashes on connecting Openrouter Provider #7417

Closed as not planned
Closed as not planned

Description

@ARIFALIDAWOOD

Description

Setup

  • Windows 11 Pro Native
  • Warp Terminal CLI

Issue

  • Crashes on trying to connect openrouter provider

First move to background (also I found no way to bring it back to foreground: Warp Terminal CLI) and then crashes

Image

Plugins

[email protected]

OpenCode version

1.1.18

Steps to reproduce

  1. Update to the latest 1.1.18
  2. Make sure you're on windows 11 pro native (npm global)
  3. Make sure you're using Warp Terminal CLI
  4. Try connecting openrouter provider key

Screenshot and/or share link

opencode
SyntaxError: Unexpected end of JSON input
    at <parse> (:0)
    at json (unknown)
    at <anonymous> (../sdk/js/src/v2/gen/client/client.gen.ts:167:33)
    at processTicksAndRejections (native:7:39)

Operating System

Windows 11 Pro

Terminal

Warp Terminal CLI

Activity

  1. github-actions commented on Jan 9, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Jan 9, 2026

    @rekram1-node
    Collaborator

    @ARIFALIDAWOOD can u show me output of:

    opencode run hello --print-logs

  3. gcoder1991 commented on Feb 27, 2026

    @gcoder1991

    i have the same error , and this is the output when i run with you command 'opencode run hello --print-logs' @rekram1-node

    ❯ opencode run hello --print-logs
    INFO 2026-02-27T05:49:17 +468ms service=default version=1.1.25 args=["run","hello","--print-logs"] opencode
    INFO 2026-02-27T05:49:17 +0ms service=default directory=/Users/relvf creating instance
    INFO 2026-02-27T05:49:17 +1ms service=project directory=/Users/relvf fromDirectory
    INFO 2026-02-27T05:49:17 +6ms service=default directory=/Users/relvf bootstrapping
    INFO 2026-02-27T05:49:17 +2ms service=config path=/Users/relvf/.config/opencode/config.json loading
    INFO 2026-02-27T05:49:17 +0ms service=config path=/Users/relvf/.config/opencode/opencode.json loading
    INFO 2026-02-27T05:49:17 +7ms service=config path=/Users/relvf/.config/opencode/opencode.jsonc loading
    INFO 2026-02-27T05:49:17 +3ms service=bun cmd=["/Users/relvf/.opencode/bin/opencode","add","@opencode-ai/[email protected]","--exact"] cwd=/Users/relvf/.config/opencode running
    INFO 2026-02-27T05:49:17 +3ms service=config path=/Users/relvf/.opencode/opencode.jsonc loading
    INFO 2026-02-27T05:49:17 +0ms service=config path=/Users/relvf/.opencode/opencode.json loading
    INFO 2026-02-27T05:49:17 +1ms service=bun cmd=["/Users/relvf/.opencode/bin/opencode","add","@opencode-ai/[email protected]","--exact"] cwd=/Users/relvf/.opencode running
    INFO 2026-02-27T05:49:17 +5ms service=plugin name=CodexAuthPlugin loading internal plugin
    INFO 2026-02-27T05:49:17 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin
    INFO 2026-02-27T05:49:17 +1ms service=plugin [email protected] loading plugin
    INFO 2026-02-27T05:49:17 +34ms service=plugin path=@gitlab/[email protected] loading plugin
    INFO 2026-02-27T05:49:17 +1ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

    installed @opencode-ai/[email protected]

    [8.00ms] done
    stderr=Saved lockfile
    done
    INFO 2026-02-27T05:49:17 +0ms service=bun cmd=["/Users/relvf/.opencode/bin/opencode","install"] cwd=/Users/relvf/.opencode running
    INFO 2026-02-27T05:49:17 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

    installed @opencode-ai/[email protected]

    [11.00ms] done
    stderr=Saved lockfile
    done
    INFO 2026-02-27T05:49:17 +0ms service=bun cmd=["/Users/relvf/.opencode/bin/opencode","install"] cwd=/Users/relvf/.config/opencode running
    INFO 2026-02-27T05:49:17 +68ms service=bus type=* subscribing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=session.updated subscribing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=message.updated subscribing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=message.part.updated subscribing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=session.updated subscribing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=message.updated subscribing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=message.part.updated subscribing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=session.diff subscribing
    INFO 2026-02-27T05:49:17 +0ms service=format init
    INFO 2026-02-27T05:49:17 +0ms service=bus type=file.edited subscribing
    INFO 2026-02-27T05:49:17 +0ms service=lsp serverIds=deno, typescript, vue, eslint, oxlint, biome, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, fsharp, sourcekit-lsp, rust, clangd, svelte, astro, jdtls, kotlin-ls, yaml-ls, lua-ls, php intelephense, prisma, dart, ocaml-lsp, bash, terraform, texlab, dockerfile, gleam, clojure-lsp, nixd, tinymist, haskell-language-server enabled LSP servers
    INFO 2026-02-27T05:49:17 +1ms service=bus type=command.executed subscribing
    INFO 2026-02-27T05:49:17 +10ms service=server method=POST path=/session request
    INFO 2026-02-27T05:49:17 +0ms service=server status=started method=POST path=/session request
    INFO 2026-02-27T05:49:17 +1ms service=session id=ses_3625b112effeU5ilw9sDdD72MK slug=silent-lagoon version=1.1.25 projectID=global directory=/Users/relvf title=New session - 2026-02-27T05:49:17.905Z time={"created":1772171357905,"updated":1772171357905} created
    INFO 2026-02-27T05:49:17 +1ms service=bus type=session.created publishing
    INFO 2026-02-27T05:49:17 +0ms service=bus type=session.updated publishing
    INFO 2026-02-27T05:49:17 +1ms service=server status=completed duration=3 method=POST path=/session request
    INFO 2026-02-27T05:49:17 +0ms service=server method=GET path=/config request
    INFO 2026-02-27T05:49:17 +0ms service=server status=started method=GET path=/config request
    INFO 2026-02-27T05:49:17 +0ms service=server status=completed duration=0 method=GET path=/config request
    INFO 2026-02-27T05:49:17 +1ms service=server method=GET path=/event request
    INFO 2026-02-27T05:49:17 +0ms service=server status=started method=GET path=/event request
    INFO 2026-02-27T05:49:17 +1ms service=server method=POST path=/session/ses_3625b112effeU5ilw9sDdD72MK/message request
    INFO 2026-02-27T05:49:17 +0ms service=server status=started method=POST path=/session/ses_3625b112effeU5ilw9sDdD72MK/message request
    INFO 2026-02-27T05:49:17 +0ms service=server event connected
    INFO 2026-02-27T05:49:17 +1ms service=bus type=* subscribing
    INFO 2026-02-27T05:49:17 +2ms service=server status=completed duration=4 method=GET path=/event request
    INFO 2026-02-27T05:49:17 +0ms service=server status=completed duration=3 method=POST path=/session/ses_3625b112effeU5ilw9sDdD72MK/message request
    INFO 2026-02-27T05:49:17 +4ms service=provider status=started state
    INFO 2026-02-27T05:49:17 +3ms service=models.dev file={} refreshing
    INFO 2026-02-27T05:49:17 +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-02-27T05:49:17 +0ms 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-02-27T05:49:18 +125ms service=provider status=completed duration=129 state
    SyntaxError: JSON Parse error: Unrecognized token '<'

  4. github-actions commented on Apr 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions