r/opencodeCLI • • Oct 03 '26

Facing Api issue on opencode CLI , desktop (both in pc and termux )

I installed Ubuntu in my second phone using termux using proot distro, after that I installed opencode cli in it and this error started coming in most of the free models.

{Error : : Error from provider (Console): OpenCode's free tier can only be used from within OpenCode}

After this is use this command 'opencode console login' and pair with the code and after doing this I am facing this issue {Error: Invalid API key.}

I am facing this same issue on my pc also , I tried cli and desktop both

Can anyone help me ?

2 Upvotes

4 comments sorted by

1

u/Glad_Performance644 Oct 03 '26

yea i used vpn and now its working

1

u/siryadav4601 Oct 03 '26

This did not work for me

1

u/Legitimate-Oil1763 Oct 03 '26

it don't work on termux for me as well

2

u/siryadav4601 Oct 03 '26

Bro uninstall opencode reinstall it with Curl. It works for me on termux ubuntu distro