Skip to content

Releases: RubCut/ZeroAPI

ZeroAPI v1.0.0 - OpenAI Compatible Browser Bridge

Choose a tag to compare

@arena-ai-coding-agent arena-ai-coding-agent released this 22 Sep 11:37

ZeroAPI v1.0.0 - OpenAI Compatible Browser Bridge

Final release. Compact professional UI, no emojis, product-ready.

What is ZeroAPI

Turn ChatGPT, DeepSeek, Gemini, Kimi, GLM, Qwen, Meta AI, Arena into a local OpenAI-compatible API server. No API keys needed — your logged-in browser sessions are the engine.

Features

  • OpenAI-compatible: Works with OpenAI SDK, LangChain, OpenWebUI, opencode, etc.
  • Site names as models: deepseek, chatgpt, gemini, kimi, glm, qwen, meta, arena, auto
  • File support: Any file type via image_url/file parts, auto-cleared after insertion
  • Auto-switch tabs: When different model requested, extension switches to matching tab
  • Tunnel detection + auto-start: ngrok, Cloudflare, localtunnel, bore; auto-start from config
  • Compact professional UI: Clean console, network IP, public URLs, models, controls
  • Config file: zeroapi_config.json for ports, keys, models, tunnels
  • Use this chat button with za- prefix compatibility side-by-side with ZeroScript

Quick Start

  1. Run server: double-click start_api.bat or python zeroapi.py
  2. Install extension: chrome://extensions -> Developer mode -> Load unpacked -> zeroapi-extension/
  3. Open https://chat.deepseek.com, log in, click Use this chat
  4. Test: curl http://localhost:8000/v1/models

Tutorial: opencode + DeepSeek

Recommended setup for local coding agent using DeepSeek browser session.

Step 1: Install opencode

curl -fsSL https://opencode.ai/install | bash

Step 2: Start ZeroAPI + DeepSeek

Step 3: Configure opencode.json

{
"provider": {
"zeroapi": {
"npm": "@ai-sdk/openai-compatible",
"name": "ZeroAPI",
"options": {
"baseURL": "http://localhost:8000/v1",
"apiKey": "zeroapi"
},
"models": {
"deepseek": { "name": "DeepSeek" }
}
}
},
"model": "zeroapi/deepseek"
}

See opencode.zeroapi.example.json in repo.

Step 4: Run opencode

opencode
opencode run "Explain this codebase"

opencode will call ZeroAPI, ZeroAPI forwards to DeepSeek browser tab, response streams back.

Tunnels

Auto-detects public URLs from ngrok, Cloudflare, lt, bore.

Autostart from config:

{
"tunnel": {
"enabled": true,
"provider": "cloudflare",
"auto_start": true
}
}

Providers: cloudflare, ngrok, localtunnel, bore, custom

Endpoints

  • GET / - Dashboard
  • GET /v1/models - 9 simple models
  • GET /v1/models/all - 21 models with aliases
  • GET /api/tunnels - tunnels + autostart config
  • GET /health - health with tunnels
  • POST /v1/chat/completions - OpenAI compatible

Installation

pip install -r requirements.txt
python zeroapi.py

Tests: python tests/test_server.py - all passing

License

GPL-3.0 - Based on ZeroScript by sebattfg