Connect ChaozCode with your favorite tools. Complete setup guides for GitHub, VS Code, Slack, CI/CD pipelines, and more.
Full GitHub integration with OAuth login, repository analysis, issue creation, and PR automation.
# macOS
brew install gh
# Ubuntu/Debian
sudo apt install gh
# Windows
winget install gh
# Interactive login
gh auth login
# Choose:
# - GitHub.com
# - HTTPS
# - Authenticate via browser
# Add your GitHub token
export GITHUB_TOKEN=$(gh auth token)
# Or add to environment file
echo "GITHUB_TOKEN=$(gh auth token)" >> ~/.chaozcode/env
curl -X POST https://api.chaozcode.com/v1/integrations/github/test \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"github_token": "YOUR_GITHUB_TOKEN"}'
| Feature | Description | API Endpoint |
|---|---|---|
| Repository Analysis | Analyze entire codebase structure | /codebase/analyze |
| Issue Creation | Create issues from AI analysis | /github/issues |
| PR Automation | Auto-generate pull requests | /github/pulls |
| Code Review | AI-powered PR reviews | /github/review |
| Commit Analysis | Understand commit history | /github/commits |
If building an app that uses ChaozCode + GitHub:
// OAuth configuration
const oauthConfig = {
clientId: 'YOUR_GITHUB_CLIENT_ID',
redirectUri: 'https://yourapp.com/callback',
scope: 'repo,read:org,gist',
authUrl: 'https://github.com/login/oauth/authorize'
};
// Generate authorization URL
const authUrl = `${oauthConfig.authUrl}?client_id=${oauthConfig.clientId}&redirect_uri=${oauthConfig.redirectUri}&scope=${oauthConfig.scope}`;
// Exchange code for token (server-side)
const response = await fetch('https://github.com/login/oauth/access_token', {
method: 'POST',
headers: { 'Accept': 'application/json' },
body: JSON.stringify({
client_id: oauthConfig.clientId,
client_secret: process.env.GITHUB_CLIENT_SECRET,
code: authCode
})
});
Native VS Code extension for inline AI assistance, code completion, and Memory Spine integration.
Search "ChaozCode" in VS Code Extensions or run:
code --install-extension chaozcode.chaozcode-vscode
Open VS Code Settings (Cmd/Ctrl + ,) and search for "ChaozCode":
// settings.json
{
"chaozcode.apiKey": "YOUR_API_KEY",
"chaozcode.endpoint": "https://api.chaozcode.com",
"chaozcode.memorySpine.enabled": true,
"chaozcode.autoComplete.enabled": true
}
chaozcode.inlineCompletions.enabledchaozcode.codeActions.enabledchaozcode.memorySpine.autoContext| Shortcut | Action |
|---|---|
Ctrl+Shift+C | Open ChaozCode panel |
Ctrl+Shift+G | Generate code from comment |
Ctrl+Shift+E | Explain selected code |
Ctrl+Shift+R | Refactor selection |
Ctrl+Shift+T | Generate tests |
Ctrl+Shift+M | Search Memory Spine |
// Available VS Code commands
ChaozCode: Generate Code // Generate code from natural language
ChaozCode: Explain Code // Explain selected code
ChaozCode: Refactor // Suggest refactoring
ChaozCode: Generate Tests // Create unit tests
ChaozCode: Search Memory // Search Memory Spine
ChaozCode: Store to Memory // Save code/context to Memory Spine
ChaozCode: Analyze File // Full file analysis
ChaozCode: Code Review // AI code review
Powerful CLI for terminal-based workflows, scripting, and CI/CD integration.
# Install via npm
npm install -g @chaozcode/cli
# Or via pip
pip install chaozcode-cli
# Or via Homebrew
brew install chaozcode/tap/chaozcode
# Interactive setup
chaozcode config
# Manual configuration
chaozcode config set api_key YOUR_API_KEY
chaozcode config set endpoint https://api.chaozcode.com
# View configuration
chaozcode config list
# Query the AI
chaozcode query "How do I implement authentication?"
# Analyze codebase
chaozcode analyze .
# Search Memory Spine
chaozcode memory search "API implementation"
# Store to Memory
chaozcode memory store "Important context" --tags api,auth
# Generate code
chaozcode generate "REST API for user management" -o src/users/
# Run agent
chaozcode agent run explore "find all TypeScript files"
# Interactive mode
chaozcode chat
# Bash completion
source <(chaozcode completion bash)
echo 'source <(chaozcode completion bash)' >> ~/.bashrc
# Zsh completion
source <(chaozcode completion zsh)
echo 'source <(chaozcode completion zsh)' >> ~/.zshrc
# Fish completion
chaozcode completion fish | source
chaozcode completion fish > ~/.config/fish/completions/chaozcode.fish
Bring ChaozCode into your Slack workspace for team collaboration and AI assistance.
Click "Add to Slack" from the ChaozCode integrations dashboard or use:
https://api.chaozcode.com/integrations/slack/install?team=YOUR_TEAM
Grant the following OAuth scopes:
chat:write - Send messagescommands - Slash commandsapp_mentions:read - Respond to @mentionschannels:history - Read channel context/chaozcode config channel #engineering
| Command | Description |
|---|---|
/chaoz ask [question] | Ask ChaozCode anything |
/chaoz analyze [url/repo] | Analyze a repository |
/chaoz search [query] | Search Memory Spine |
/chaoz status | Check system status |
/chaoz help | Show available commands |
Mention @ChaozCode in any channel to get AI assistance:
@ChaozCode how do I optimize this SQL query?
@ChaozCode please review the PR at https://github.com/...
@ChaozCode what's the status of the API service?
Integrate ChaozCode into your GitHub Actions workflows for automated code review, analysis, and documentation.
# .github/workflows/chaozcode.yml
name: ChaozCode Analysis
on:
pull_request:
types: [opened, synchronize]
push:
branches: [main]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ChaozCode Analysis
uses: chaozcode/action@v1
with:
api_key: ${{ secrets.CHAOZCODE_API_KEY }}
task: analyze
- name: Code Review
uses: chaozcode/action@v1
with:
api_key: ${{ secrets.CHAOZCODE_API_KEY }}
task: review
github_token: ${{ secrets.GITHUB_TOKEN }}
| Task | Description | Options |
|---|---|---|
analyze | Full codebase analysis | path, depth, output |
review | AI code review on PR | severity, auto_comment |
test | Generate/validate tests | framework, coverage_min |
docs | Generate documentation | format, output_dir |
security | Security analysis | severity, fail_on |
ChaozCode integration for GitLab CI/CD pipelines.
# .gitlab-ci.yml
stages:
- analyze
- review
chaozcode-analyze:
stage: analyze
image: chaozcode/cli:latest
script:
- chaozcode config set api_key $CHAOZCODE_API_KEY
- chaozcode analyze . --output report.json
artifacts:
paths:
- report.json
chaozcode-review:
stage: review
image: chaozcode/cli:latest
script:
- chaozcode review --mr $CI_MERGE_REQUEST_IID
only:
- merge_requests
ChaozCode integration for Jenkins pipelines.
// Jenkinsfile
pipeline {
agent any
environment {
CHAOZCODE_API_KEY = credentials('chaozcode-api-key')
}
stages {
stage('ChaozCode Analysis') {
steps {
sh '''
npm install -g @chaozcode/cli
chaozcode analyze . --output analysis.json
'''
}
}
stage('Code Review') {
when {
changeRequest()
}
steps {
sh 'chaozcode review --pr ${CHANGE_ID}'
}
}
}
post {
always {
archiveArtifacts artifacts: 'analysis.json', fingerprint: true
}
}
}
npm install @chaozcode/sdk
import { ChaozCode } from '@chaozcode/sdk';
const client = new ChaozCode({
apiKey: process.env.CHAOZCODE_API_KEY
});
const result = await client.query({
prompt: "Explain this code",
context: codeString
});
pip install chaozcode
from chaozcode import ChaozCode
client = ChaozCode(
api_key=os.environ["CHAOZCODE_API_KEY"]
)
result = client.query(
prompt="Explain this code",
context=code_string
)
go get github.com/chaozcode/chaozcode-go
import "github.com/chaozcode/chaozcode-go"
client := chaozcode.NewClient(
os.Getenv("CHAOZCODE_API_KEY"),
)
result, err := client.Query(ctx, &chaozcode.QueryRequest{
Prompt: "Explain this code",
Context: codeString,
})
// Cargo.toml
[dependencies]
chaozcode = "0.1"
use chaozcode::Client;
let client = Client::new(
std::env::var("CHAOZCODE_API_KEY")?
);
let result = client.query(
"Explain this code",
Some(code_string)
).await?;
Receive real-time notifications for events in your ChaozCode workspace.
| Event | Description | Payload |
|---|---|---|
memory.stored | New memory stored | id, content, tags |
query.completed | Query finished processing | query_id, result |
agent.completed | Agent task completed | agent_id, output |
analysis.ready | Code analysis ready | analysis_id, summary |
alert.triggered | System alert triggered | alert_type, message |
// Register a webhook
const webhook = await client.webhooks.create({
url: 'https://yourapp.com/webhooks/chaozcode',
events: ['memory.stored', 'query.completed'],
secret: 'your-webhook-secret'
});
// Webhook payload example
{
"event": "memory.stored",
"timestamp": "2026-01-30T10:00:00Z",
"data": {
"id": "mem_abc123",
"content": "API authentication pattern",
"tags": ["api", "auth"]
},
"signature": "sha256=abc123..."
}
// Node.js example
const crypto = require('crypto');
function verifyWebhook(payload, signature, secret) {
const hmac = crypto.createHmac('sha256', secret);
hmac.update(payload);
const expectedSig = 'sha256=' + hmac.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(signature),
Buffer.from(expectedSig)
);
}