Open Code Terminal
From Notes_Wiki
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]