๐
Platforms & Editors
Use Hanzo AI with GitHub Copilot
Extend your GitHub Copilot workflow with Hanzo AI for access to additional models and capabilities via the API. Use Hanzo for tasks Copilot can't handle.
Base URL: https://api.hanzo.ai/v1
API Key: Get yours at hanzo.ai/signup ยท Fully OpenAI-compatible ยท 390+ models available
๐
Created by GitHub / Microsoft
License: Proprietary ยท View source on GitHub โ
Hanzo AI is OpenAI-compatible, so existing GitHub Copilot code works with zero refactoring. We deeply appreciate the GitHub / Microsoft team for building and maintaining this open-source project.
Hanzo API alongside Copilot
python
# Use GitHub Copilot in editor, Hanzo API in code
from openai import OpenAI
# Hanzo for programmatic access
client = OpenAI(
base_url="https://api.hanzo.ai/v1",
api_key="your-hanzo-api-key",
)
# Access 390+ models not in Copilot
response = client.chat.completions.create(
model="zen4-pro",
messages=[{"role": "user", "content": "Review this code..."}],
)GitHub Actions with Hanzo
typescript
// In CI: use Hanzo AI for code review
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.hanzo.ai/v1",
apiKey: process.env.HANZO_API_KEY,
});
const review = await client.chat.completions.create({
model: "zen4-pro",
messages: [{
role: "user",
content: `Review this PR diff:
${diff}`,
}],
});GitHub Actions workflow
yaml
name: AI Code Review
on: [pull_request]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: AI Review
env:
HANZO_API_KEY: ${{ secrets.HANZO_API_KEY }}
run: |
pip install openai
python scripts/ai_review.pyAPI key setup
bash
# Add to GitHub repo secrets
# Settings > Secrets > Actions > New secret
# Name: HANZO_API_KEY
# Value: your-hanzo-api-keyReady to get started?
Create a free account and get your API key. 100K API calls/month free forever.