TL;DR
- Install in 2 minutes: VS Code (
ext install Codeium.codeium) or JetBrains (search "Codeium" in plugins). - Cascade mode: Agentic workflows for multi-step coding (e.g.,
/refactor+/test). - Free tier: Unlimited autocomplete, 50 chat requests/day. Pro ($12/user/month) unlocks unlimited chat.
- Privacy: No telemetry, self-hostable (Enterprise). Aligns with AI Security Posture Framework™ for PROTECT and COMPLY phases.
1. Installation and Setup
VS Code (Recommended)
# Install via CLI (VS Code must be open)
code --install-extension Codeium.codeium
Expected Output:
Installing extensions...
Extension 'Codeium.codeium' v3.12.0 was successfully installed.
Post-Install:
- Reload VS Code.
- Sign in via GitHub/GitLab/Google (or use anonymously for autocomplete only).
- Accept permissions (read/write to workspace files for context).
Gotcha:
- If autocomplete doesn’t appear, check the status bar (bottom-right) for errors. Run
Codeium: Restart Extensionfrom the command palette (Ctrl+Shift+P).
JetBrains (IntelliJ, PyCharm, etc.)
- Open Settings > Plugins.
- Search for
Codeiumand install. - Restart the IDE.
- Sign in via the popup.
Gotcha:
- JetBrains plugins update slower than VS Code. For latest features, use Codeium’s JetBrains nightly builds.
CLI (Terminal)
# Install Python package (requires Python 3.8+)
pip install codeium --upgrade
Verify Installation:
codeium --version
# Output: codeium, version 3.12.0
Authenticate:
codeium auth
# Opens browser to sign in. Token saved to ~/.codeium/credentials.json.
2. Cascade Mode (Agentic Coding)
Cascade mode lets you chain AI actions (e.g., refactor → test → document) in a single prompt. Key for ASSESS and PROTECT phases of the AI Security Posture Framework™ (e.g., automated security fixes).
Enable Cascade
- Open the Codeium chat panel (
Ctrl+Shift+Iin VS Code). - Type
/cascadeto start a multi-step workflow.
Example: Secure Refactor
Prompt:
/cascade
1. Refactor this Python function to use type hints and remove hardcoded secrets.
2. Add input validation for the `user_id` parameter.
3. Generate a unit test using pytest.
Expected Output:
# Refactored function (step 1)
def get_user_data(user_id: str, api_key: str = os.getenv("API_KEY")) -> dict:
if not isinstance(user_id, str) or len(user_id) != 36:
raise ValueError("user_id must be a 36-character UUID string")
# ... rest of the function
# Generated test (step 3)
def test_get_user_data():
with patch("os.getenv", return_value="test_key"):
assert get_user_data("123e4567-e89b-12d3-a456-426614174000") == {...}
Pro Tip:
- Use
/cascade+/explainto audit changes for compliance (COMPLY phase of the AI Security Posture Framework™). - Save common workflows as custom commands (see Section 5).
3. Autocomplete Configuration
Enable/Disable Autocomplete
VS Code:
- Open Settings (
Ctrl+,). - Search for
Codeium: Enable Autocomplete. - Toggle the checkbox.
JetBrains:
- Go to Settings > Tools > Codeium.
- Check/uncheck
Enable Autocomplete.
Customize Trigger Keys
Add to settings.json (VS Code):
{
"codeium.enableAutoSuggestions": true,
"codeium.suggestionTriggerKeys": ["Tab", "Enter"] // Default: ["Tab"]
}
Gotcha:
- If
Tabconflicts with snippets, useEnterinstead.
Language-Specific Settings
{
"codeium.languageSettings": {
"python": {
"maxSuggestions": 5, // Default: 3
"suggestionDelay": 200 // ms (default: 300)
},
"javascript": {
"disableAutocomplete": true // For specific languages
}
}
}
4. Command Palette and Shortcuts
Essential Shortcuts
| Action | VS Code Shortcut | JetBrains Shortcut |
|---|---|---|
| Open Chat | Ctrl+Shift+I | Ctrl+Shift+C |
| Accept Suggestion | Tab | Tab |
| Reject Suggestion | Esc | Esc |
| Trigger Suggestion | Alt+\ | Alt+Enter |
| Toggle Autocomplete | Ctrl+Shift+A | Ctrl+Alt+A |
| Cascade Mode | /cascade (in chat) | /cascade (in chat) |
Custom Commands
Define slash commands in ~/.codeium/commands.json:
{
"commands": [
{
"name": "secure-refactor",
"description": "Refactor code with security checks",
"prompt": "/cascade\n1. Add input validation\n2. Remove hardcoded secrets\n3. Add logging for sensitive operations"
}
]
}
Usage:
Type /secure-refactor in the chat panel.
5. Model Selection
Cloud Models (Default)
Codeium uses proprietary models optimized for code. No configuration needed for free/Pro tiers.
Local Models (Experimental)
Requirements:
Configure Local Model:
- Open
settings.json(VS Code/JetBrains). - Add:
{
"codeium.useLocalModel": true,
"codeium.localModelPath": "/path/to/model.gguf" // e.g., CodeLlama-7B
}
Gotcha:
- Local models are slower and lack multi-file context. Use for offline work only.
6. Working with Monorepos
Enable Multi-File Context
- Open the root directory of your monorepo in your IDE.
- Codeium automatically indexes files in the workspace.
Limitations:
- Max 32k tokens for context (long files may truncate).
- For large repos (>10k files), exclude directories in
settings.json:
{
"codeium.excludedDirectories": [
"**/node_modules",
"**/dist",
"**/.git"
]
}
Example: Cross-File Refactor
Prompt:
/cascade
1. Update the `UserService` class in `backend/services/user.py` to use the new `AuthClient` from `backend/clients/auth.py`.
2. Generate a migration script for the database schema changes.
Expected Output:
- Codeium will:
- Import
AuthClientinuser.py. - Replace deprecated auth methods.
- Generate a
migrations/002_add_auth_client.sqlfile.
- Import
7. Free Tier vs. Pro Features
| Feature | Free Tier | Pro Tier ($12/user/month) |
|---|---|---|
| Autocomplete | ✅ Unlimited | ✅ Unlimited |
| Chat | 50 requests/day | ✅ Unlimited |
| Multi-File Context | ❌ (Single file) | ✅ (32k tokens) |
| Cascade Mode | ❌ | ✅ |
| Custom Commands | ❌ | ✅ |
| Priority Support | ❌ | ✅ |
| Self-Hosting | ❌ | ✅ (Enterprise only) |
| AI Security Posture Framework™ | ASSESS only | ASSESS + PROTECT + DETECT |
Upgrade to Pro:
- Open the Codeium panel in your IDE.
- Click Upgrade and select a plan.
Common Errors and Fixes
| Error | Cause | Fix |
|---|---|---|
Rate limit exceeded | Free tier chat limit (50/day) | Upgrade to Pro or wait 24 hours. |
No suggestions | Autocomplete disabled or network issue | Check settings.json or run Codeium: Restart Extension. |
Multi-file context failed | File too large or excluded | Reduce file size or update excludedDirectories. |
Authentication failed | Expired token | Run codeium auth in terminal or re-sign in via IDE. |
Local model not found | Incorrect path or model format | Verify localModelPath in settings.json and model compatibility. |
Alternatives at a Glance
| Tool | Best For | Tradeoffs |
|---|---|---|
| Codeium | Privacy, self-hosting, free tier | Smaller community than Copilot |
| GitHub Copilot | Largest model, deep IDE integration | No self-hosting, telemetry concerns |
| Cursor | Chat-first workflows | Proprietary model, no local options |
What's Next?
- Set up Cascade mode for your most repetitive tasks (e.g.,
/cascade /refactor /test). - Configure custom commands for security checks (e.g.,
/secure-auditto scan for secrets). - Explore self-hosting if you’re in a regulated industry (contact Codeium Enterprise).
For teams adopting AI tools, Hyperion Consulting offers AI Security Posture Framework™ workshops to align Codeium with your security and compliance goals. Learn more at hyperion-consulting.io.
