CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 08:18:42 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=270.797156,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=625.101093,nginx;desc="NGINX";dur=0.920882,glb;desc="GLB";dur=151.606796
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: aab62e3
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=diaOAx%2FAJRyCDMZuz7f3vM1zGaF%2BtWICiNFH6uQzj5tMVyjabS8tBZt126VeCr0Q423Z4GU0%2FUhkd1j7i6j%2BT3Uax6bnm%2BESaR4w59pqlodT35aSKVVsZCU6%2FCX4QKBO6PXcoysNPJFmxoZqV3mtA5O8ghOk6pohObSJs5OqPA6qai5En7GypY4YFJuIoBf4CzfcWvO4lVYFghpteO9%2FLQod8%2BpbrtB%2BBPBalza5%2BO%2FR2abpfyUYDOOhKfk6rGJTBs8M00Gwc6Ij1zt8GK3Jnw%3D%3D--B6sDT3gchJbdwgHI--7VX7F58T7jB0wERAhmHgww%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1105806518.1760170721; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 08:18:41 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 08:18:41 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E084:3B926C:470B39:615E02:68EA12E1
OpenRouter models not visible with `OPENROUTER_KEY=<key>` Β· Issue #10 Β· simonw/llm-openrouter Β· GitHub
No one assignedNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
OpenRouter models are listed and do work if I do llm keys set openrouter
, but not with the OPENROUTER_KEY
environment variable.
I've tried this on GitHub Workflows, on a local Ubuntu 22.04 container, and on my Windows 11 laptop. The OpenRouter models aren't visible or usable. In the Ubuntu container, for example, I see this:
$ podman run -it ubuntu:22.04
# apt update ; apt install -y python3-venv
# python3 -m venv venv ; . venv/bin/activate ; pip install llm-openrouter
# export OPENROUTER_KEY=<my-openrouter-key>
# llm models
OpenAI Chat: gpt-3.5-turbo (aliases: 3.5, chatgpt)
OpenAI Chat: gpt-3.5-turbo-16k (aliases: chatgpt-16k, 3.5-16k)
OpenAI Chat: gpt-4 (aliases: 4, gpt4)
OpenAI Chat: gpt-4-32k (aliases: 4-32k)
OpenAI Chat: gpt-4-1106-preview
OpenAI Chat: gpt-4-0125-preview
OpenAI Chat: gpt-4-turbo-2024-04-09
OpenAI Chat: gpt-4-turbo (aliases: gpt-4-turbo-preview, 4-turbo, 4t)
OpenAI Chat: gpt-4o (aliases: 4o)
OpenAI Chat: gpt-4o-mini (aliases: 4o-mini)
OpenAI Completion: gpt-3.5-turbo-instruct (aliases: 3.5-instruct, chatgpt-instruct)
On Windows 11 and Python 3.11.4 in both PowerShell and the mintty terminal installed by Git:
PS C:\> pip install llm-openrouter
$ export OPENROUTER_KEY=<my-openrouter-key> # on mintty
PS C:\> $env:OPENROUTER_KEY = '<my-openrouter-key>' # on PowerShell
PS C:\> llm models
<the same output as above>
Trying to use the models on the CLI or through the Python API doesn't work either, I get this on the Python API (here in a GitHub build):
File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/llm/__init__.py", line 152, in get_model
raise UnknownModelError("Unknown model: " + name)
llm.UnknownModelError: 'Unknown model: openrouter/anthropic/claude-3.5-sonnet:beta'
I also tried, without success:
- running as a user
- not in a virtualenv
pip install llm ; llm install llm-openrouter
apt install -y git ; pip install llm@git+https://github.com/simonw/llm@main llm-openrouter@git+https://github.com/simonw/llm-openrouter@main
- I also tried other llm plugins, and here are my results after doing
llm install llm-<plugin> ; llm models
without setting any API keys. π means the models from the plugin aren't included in the list, and π― means they are on the list.- π
llm-mistral
- π―
llm-gemini
- π―
llm-claude
- π―
llm-claude-3
- π―
llm-command-r
- π―
llm-reka
- π―
llm-perplexity
- π―
llm-groq
- π
llm-anyscale-endpoints
- π
llm-replicate
- π
llm-fireworks
- π―
llm-palm
- π
llm-openrouter
- π―
llm-cohere
- π―
llm-bedrock-anthropic
- π―
llm-bedrock-meta
- π
llm-together
(llm.errors.NeedsKeyException
)
- π
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Projects
Milestone
Relationships
Development
Issue actions
You canβt perform that action at this time.