OpenHands / OpenHands/software-agent-sdk

Anomalyco/OpenCode requires x-opencode-session through LiteLLM in just 3 days

Open
#4,850 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependencies enhancement lm-support release-note-required
Dominant language
Python
Stars
1.1k
Forks
542
Avg merge
1d 19h
Merged PRs (30d)
137

Description

OpenCode just asked LiteLLM to send x-opencode-session header on all out outbound inference HTTP requests to their API.
https://github.com/BerriAI/litellm/issues/39503

Since there is no "opencode" provider in LiteLLM (which means there is none for them in OpenHands too) I'm not sure how they are going to do that, if at all. IMO LiteLLM should either recognize OpenCode API itself or accept a header (eg. from OpenHands) to pass it further to the inference provider API. Both solutions will require OpenHands release due to possible LiteLLM update which is a bit tricky since we are short on time. Opencode announced it today morning with a deadline on 6/09/2026. Just crazy.

I'm opening this issue to track this topic. All comments are more than welcome.
Cheers!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked LiteLLM issue (#39503) and trace how OpenHands currently reaches inference provider APIs; the payload names no repository file or test. Done requires a decided approach for OpenCode support or header forwarding, with the required LiteLLM and OpenHands release coordination understood.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.