Run Local LLMs and Grok with OpenCode CLI
Press play on the video. It'll jump straight to the section that answers the
title above — no need to watch the full video.
How to use the 'OpenCode' open-source tool to access free models like Grok, local LLMs (Llama), and the Claude API directly from your terminal.
The Advantage of Local Context
OpenCode automatically reads files in your current directory. This means you can switch AI models (e.g., from Grok to Claude) mid-conversation without losing project context, as all conversation data is stored locally.
Free Grok Access
OpenCode currently has special access to Grok AI, allowing users to use Grok models for free directly from the CLI without needing their own API key.
More from Local AI & Open Source Deployment
View All
None
Docker
Automating web browser tasks with Local LLMs (Ollama) & DeepSeek
Browser Use
Ollama
Install and configure Robin AI Dark Web Scraper with Docker and Tor
Robin
Docker
Install and run GPT-OSS AI models offline with Ollama
Ollama
Running GPT-OSS models locally with Ollama
Ollama
OpenAI
Installing and Configuring LiteLLM Proxy with Docker
LiteLLM
Docker