Difference between revisions of "Open Code Terminal"

From Notes_Wiki
(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...")
 
m
 
Line 1: Line 1:
[[Main Page|Home]] > [[Local system based AI tools]] > [[Open Code Terminal]]
[[Main Page|Home]] > [[Local system based AI tools]] > [[AI Programming tools]] > [[Open Code Terminal]]


=Installation - First option=
=Installation - First option=
Line 46: Line 46:




[[Main Page|Home]] > [[Local system based AI tools]] > [[Open Code Terminal]]
[[Main Page|Home]] > [[Local system based AI tools]] > [[AI Programming tools]] > [[Open Code Terminal]]

Latest revision as of 06:31, 31 August 2025

Home > Local system based AI tools > AI Programming 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]


Home > Local system based AI tools > AI Programming tools > Open Code Terminal