Skip to content

New user, fresh install - can't copy/paste OpenRouter API key, only "Get Open Router key" button works #982

@cfdude

Description

@cfdude

Which version of the app are you using?

3.3.18

Which API Provider are you using?

OpenRouter

Which Model are you using?

DeepSeek & Claude

What happened?

Fresh install, user tried to log into OpenRouter account in browser and copy/paste their API key directly into the field in the Settings menu for OpenRouter. It did let him paste the key but there must have been some transformation in the paste. He could not successfully connect to OpenRouter to perform any actions. He deleted the key and clicked the button "Get Open Router key" and followed that process and everything worked successfully.

I'm wondering if on paste, we need to apply a trim() if there is an extra space being pasted in from copying directly from Open Router?

Discord chat: https://discord.com/channels/1332146336664915968/1339430623093325836

Steps to reproduce

  1. Fresh install of Roo (no prior settings - although the user did switch from Cline to Roo)
  2. Go to openrouter.com, copy API key
  3. Paste key into Settings menu for Open Router
  4. Attempt to do something in Roo, receive an error

Relevant API REQUEST output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions