Open Code Terminal
From Notes_Wiki
Revision as of 13:49, 27 July 2025 by Saurabh (talk | contribs) (Created page with "Home > Local system based AI tools > Open Code Terminal =Installation - First option= First option is to install from https://opencode.ai/ via: <pre> curl -fsSL https://opencode.ai/install | bash </pre> Then configure using below and try login using grok-4 or some other supported API key <pre> opencode auth login </pre> This opens opencode UI where we can use /models to select Grok-4 =Install Open Code terminal - Alternate Option= To install...")
Home > Local system based AI tools > Open Code Terminal
Installation - First option
First option is to install from https://opencode.ai/ via:
curl -fsSL https://opencode.ai/install | bash
Then configure using below and try login using grok-4 or some other supported API key
opencode auth login
This opens opencode UI where we can use /models to select Grok-4
Install Open Code terminal - Alternate Option
To install Open Code Terminal use:
dnf -y install go sudo dnf install ripgrep sudo dnf install fzf curl -fsSL https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | bash
Then to try using this with Grok 4 try
echo 'export XAI_API_KEY="your_grok_4_api_key"' >> ~/.bashrc source ~/.bashrc mkdir opencode cd opencode opencode
During first launch Enable creating initialization. Use Ctrl+/ or Ctrl+? for help. Eg It will show ctrl+k for commands
Usage
After this tried using grok-4 for updating index.php file but it failed in delivering good output especially compared to [[Gemini CLI]