Automatically assign themes based on the LLM provider/model you're using across multiple code editors:
- OpenCode - Automatic theme switching
- VS Code - Complete theme extensions for each provider
- Claude Code - Model-aware environment configuration
Automatic Theme Switching:
# Launch with Claude - Orange theme applied
$ opencode -m anthropic/claude-sonnet-4-5
π¨ Theme: Anthropic (Orange) β’ Model: claude-sonnet-4-5
# Launch with Gemini - Yellow theme applied
$ opencode -m google/gemini-pro
π¨ Theme: Google (Yellow) β’ Model: gemini-pro
# Launch with local Qwen - Purple theme applied
$ opencode -m ollama/qwen2.5-coder
π¨ Theme: Ollama (Purple) β’ Model: qwen2.5-coderTheme Preview:
| Provider | Color Scheme | Primary Color | Use Case |
|---|---|---|---|
| π Anthropic | Orange warmth | #FF6B35 |
Claude models |
| π‘ Google | Yellow bright | #F4B400 |
Gemini models |
| π΄ xAI | Dark + Red | #FF1744 |
Grok models |
| π΅ Perplexity | Light Blue | #4FC3F7 |
Sonar models |
| π’ OpenAI | Green tech | #10A37F |
GPT models |
| π· DeepSeek | Cyan tech | #00BCD4 |
DeepSeek models |
| π£ Ollama | Purple local | #9C27B0 |
Local models |
| π‘ Groq | Gold speed | #FFD700 |
Fast inference |
Full theme switching with automatic model detection and 8 pre-configured provider themes.
Installation: Copy to ~/.config/opencode/ and use the wrapper script.
Complete VS Code theme extensions for each AI provider with syntax highlighting, UI colors, and git decorations.
Installation: ./scripts/install-vscode-themes.sh --all
Model-aware environment configuration using SessionStart hooks. Sets environment variables and customizes terminal prompts.
Installation: ./scripts/setup-claude-code.sh
This project provides scripts and theme configurations to dynamically switch your code editor's visual theme based on which AI model you're working with. Each provider gets a unique color scheme for better visual context and brand recognition.
- Multi-editor support - OpenCode, VS Code, and Claude Code
- Automatic theme switching based on model provider
- 8 pre-configured themes for major AI providers
- VS Code theme extensions with full syntax highlighting
- Claude Code hooks for environment customization
- Easy model addition with helper scripts
- Environment variable support for flexibility
- Extensible - add your own providers and themes
| Provider | Theme Color | Example Model |
|---|---|---|
| Anthropic (Claude) | Orange | claude-sonnet-4-5 |
| Google (Gemini) | Yellow | gemini-pro |
| xAI (Grok) | Dark/Red | grok-1 |
| Perplexity | Light Blue | sonar-reasoning |
| OpenAI (GPT) | Green | gpt-4 |
| DeepSeek | Cyan | deepseek-coder |
| Ollama/Local | Purple | qwen2.5-coder |
| Groq | Gold | mixtral-8x7b |
Choose your editor:
- OpenCode: See OpenCode Installation below
- VS Code: Run
./scripts/install-vscode-themes.sh --allor see VS Code README - Claude Code: Run
./scripts/setup-claude-code.shor see Claude Code README
# Clone or copy to your config directory
cp -r opencode ~/.config/
# Add the main script to your PATH
mkdir -p ~/bin
cp ~/.config/opencode/scripts/opencode-model-theme ~/bin/opencode
chmod +x ~/bin/opencode
# Ensure ~/bin is in your PATH
export PATH="$HOME/bin:$PATH"# Launch OpenCode with automatic theme selection
opencode -m anthropic/claude-sonnet-4-5 # Uses orange theme
opencode -m google/gemini-pro # Uses yellow theme
opencode -m ollama/qwen2.5-coder # Uses purple theme
# Force a specific theme regardless of model
opencode -t deepseek -m anthropic/claude-opus-4
# List available themes
opencode -l
# Add a new model
~/.config/opencode/scripts/opencode-add-model provider/model-name "Display Name"# Generate themes from OpenCode theme files
python3 scripts/generate-vscode-themes.py
# Install all themes
./scripts/install-vscode-themes.sh --all
# Install specific themes
./scripts/install-vscode-themes.sh anthropic google openai
# Then in VS Code: Cmd/Ctrl+Shift+P β "Color Theme" β Select your AI provider theme# Setup for current project
./scripts/setup-claude-code.sh --local
# Setup globally for all projects
./scripts/setup-claude-code.sh --global
# The hook runs automatically on SessionStart
# Check environment variables:
echo $AI_PROVIDER # e.g., "anthropic"
echo $AI_MODEL_THEME # e.g., "Anthropic Claude"
echo $AI_THEME_COLOR # e.g., "#FF6B35"opencode-model-themes/
βββ README.md # This file
βββ scripts/
β βββ opencode-add-model # Helper to add new models (OpenCode)
β βββ opencode-model-theme # Main wrapper script (OpenCode)
β βββ generate-vscode-themes.py # Generate VS Code theme extensions
β βββ install-vscode-themes.sh # Install VS Code themes
β βββ setup-claude-code.sh # Setup Claude Code integration
βββ themes/ # OpenCode theme JSON files
β βββ README.md # Theme documentation
β βββ anthropic.json # Claude/Anthropic theme
β βββ deepseek.json # DeepSeek theme
β βββ google.json # Gemini/Google theme
β βββ groq.json # Groq theme
β βββ ollama.json # Ollama/Local models theme
β βββ openai.json # OpenAI/GPT theme
β βββ perplexity.json # Perplexity theme
β βββ xai.json # xAI/Grok theme
βββ vscode-themes/ # Generated VS Code extensions
β βββ vscode-anthropic-theme/
β βββ vscode-google-theme/
β βββ vscode-openai-theme/
β βββ ... (8 themes total)
βββ claude-code/ # Claude Code integration
βββ README.md # Claude Code setup guide
βββ hooks/
βββ session-start.sh # SessionStart hook script
- Create a theme file in
~/.config/opencode/themes/yourprovider.json - Edit
scripts/opencode-model-themeand add your provider to thePROVIDER_THEMESmapping - Use it:
opencode -m yourprovider/model-name
See themes/README.md for detailed theme creation instructions.
OPENCODE_MODEL- Set default model (format:provider/model-id)OPENCODE_THEME- Force a specific themeOPENCODE_CONFIG- Custom config file path
Contributions welcome! To add a new provider theme:
- Create the theme JSON file
- Add provider mapping to the script
- Test with a model from that provider
- Submit a pull request
MIT
- OpenCode - The AI-powered code editor
- ai-tools-hub - Unified AI tools management system
Note: This is a community project and is not officially affiliated with OpenCode.