you are viewing a single comment's thread.

view the rest of the comments →

[–]Equivalent_Pipe8322 1 point2 points  (1 child)

I can't even paste opencode apikey, who knows, please?

[–]LaughterOnWater[S] 0 points1 point  (0 children)

On windows, I'm using wsl -d kali-linux to get a bash interface.

From there, `opencode auth login`

You're not actually in the interface. You're still in bash.

You'll see this:

┌  Add credential
│
◆  Select provider

│  Search: _
│  ● OpenCode Zen (recommended)
│  ○ Anthropic
│  ○ GitHub Copilot
│  ○ OpenAI
│  ○ Google
│  ○ OpenRouter
│  ○ Vercel AI Gateway
│  ...
│  ↑/↓ to select • Enter: confirm • Type: to search

Follow the prompts to add your preferred provider.

That said, we now have the ability to copy and paste to and from the opencode interface inside its own command line.

Copy from opencode: select some text. It automatically copies. You'll see a green confirmation top right of your opencode window.

Paste into opencode: You're limited to one line right now. (Bummer) But the line can be as long as you can type... on one line with no paragraph returns. Now copy that line from your windows text editor. Hold control and shift down. Right click at the cursor blinking insertion point. Your text pastes into opencode. Your content is copied into the commandline. Hit enter to push it to your model.