Skip to content

[BUG] Created two API keys not able to test second created. Always logs for only first time created key. #9609

Description

@karitselmuthu

OmniRoute Version

3.8.49

Installation Method

npm (global)

Operating System

macOS

OS Version

macos

Node.js Version

No response

Provider(s) Involved

Anthropic

Model(s) Involved

Claude-Sonnet-4.5

Client Tool

VS Code with Claude Code Extension

Description

I have created my first API key at 10:45 AM IST. After created keys are not listed in the logs. I have made changes in settings.json to handle tokens status using the second key. "omniroute.provider": {
"apiBase": "http://localhost:20128/v1",
"apiKey": "MY_TOKEN", // Replace with new key
"defaultModel": "claude-sonnet-4.5"

"terminal.integrated.env.osx": {
    "ANTHROPIC_BASE_URL": "http://localhost:20128/v1",
    "ANTHROPIC_API_KEY": "MY_TOKEN"  // Replace with new key
},
"claudeCode.model": "claude-sonnet-4.5",
"claudeCode.environmentVariables": [
    {
        "name": "ANTHROPIC_BASE_URL",
        "value": "http://localhost:20128/v1"
    },
    {
        "name": "ANTHROPIC_API_KEY",
        "value": "MY_TOKEN"  // Replace with new key
    }

Steps to Reproduce

Logs shows option of All Keys or First Key Created in filter.

Expected Behavior

Omniroute Show logs for tokens used in Claude Code Extension .

Actual Behavior

There's an issue with the selected model (claude-sonnet-5). It may not exist or you may not have access to it.

Test Impact

Unsure

Error Logs / Output

Screenshots

No response

Additional Context

No response

Validation Plan

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions