Skip to content

Releases

v1.0.1 - Agent Stability, Universal Tool Calling & Keep-Alive Heartbeat

Choose a tag to compare

@metagliatore metagliatore released this 13 Nov 23:24

🚀 Release v1.0.1 — Agent Stability, Universal Tool Calling & Keep-Alive Heartbeat

This release brings critical stability improvements and bug fixes for running autonomous coding agents (such as Hermes Agent, Pi Agent, OpenCode, Aider, and Cline) against the Antigravity backend.


🐛 Bug Fixes & Improvements

  • 🧠 Agent-on-Agent Inception Fix:

    • Automatically provisions /root/.gemini/config/GEMINI.md system rule on container startup via entrypoint.sh.
    • Strictly forces the underlying agy model to act as a pure LLM inference engine, preventing it from executing bash commands or exploring the container environment when given user/agent prompts.
    • Enforced cwd="/tmp" across all subprocess executions to prevent container workspace inspection.
  • 🛠️ Universal Tool Calling Parser:

    • Enhanced tool call extraction (_extract_single_tool_call in tasks.py) to flawlessly handle both flat {"name": ..., "arguments": ...} and standard nested OpenAI {"id": ..., "type": "function", "function": {"name": ..., "arguments": ...}} formats.
    • Fixes the Model generated invalid tool call: error observed in Hermes Agent and other OpenAI-compatible tooling.
  • 💓 Two-Tier SSE Liveness Keep-Alive:

    • Emits HTTP SSE comments (: ping\n\n) every 10 seconds to maintain persistent connections across reverse proxies (Caddy, Nginx, Cloudflare).
    • Emits empty OpenAI completion chunks ({"choices":[{"delta":{}}]}) every 10 seconds during model thinking/wait phases. This resets client-side inactivity timers (such as Hermes' StreamingWaitMonitor), completely preventing premature 180s stream disconnects on long-running tasks.
  • 🩺 Internal Diagnostics CLI & Endpoint:

    • Run docker compose exec api python -m doctor to verify Copilot token, Antigravity session, Redis connection, and Rate Limiter health.
    • Authenticated diagnostic endpoint available at GET /v1/doctor.

📦 Container Images

Published to GitHub Container Registry:

  • ghcr.io/metagliatore/cli2api-llm-gate:v1.0.1
  • ghcr.io/metagliatore/cli2api-llm-gate:latest

v1.0.0 - Multi-Provider AI Gateway (Google Antigravity & GitHub Copilot)

Choose a tag to compare

@metagliatore metagliatore released this 01 Nov 00:04

🚀 Release v1.0.0 — Multi-Provider AI Gateway

We are thrilled to announce the official v1.0.0 release of cli2api-llm-gate!
This milestone transforms your existing CLI subscriptions (Google Antigravity and GitHub Copilot) into a production-grade, self-hosted, OpenAI-compatible AI gateway.


✨ Highlights & Key Features

  • 🧠 Dual Provider Support:
    • Google Antigravity (agy): gemini-3.8-flash-high, gemini-3.8-flash-thinking, gemini-3.8-pro-high, and Claude models.
    • GitHub Copilot (gh copilot): gpt-4o, gpt-4o-mini, o1-preview, o1-mini, claude-3.5-sonnet.
  • ⚡ Zero Extra Token Cost: Leverage quota-included CLI subscriptions without incurring per-token API charges.
  • 🔄 Real-Time Streaming: High-speed, real-time Server-Sent Events (SSE) streaming (stream: true).
  • 👁️ Vision & Multimodal: Native image analysis with base64 and standard image URLs via /v1/chat/completions.
  • 📁 Files & Responses API Support:
    • /v1/files: Upload files and images for multimodal prompting.
    • /v1/responses: OpenAI responses API compatibility.
  • 🔒 Production Ready & Automatic TLS:
    • Built-in Caddy reverse proxy for automated HTTPS/Let's Encrypt certificates.
    • Bearer Token authentication (API_GATEWAY_TOKEN).
    • Redis asynchronous queuing with dedicated worker processes for high throughput and reliability.
  • 📦 Dual Deployment Options:
    • Lightweight / GHCR Image (ghcr.io/metagliatore/cli2api-llm-gate:latest): Ultra-fast, minimal footprint, mounts CLI credentials from your host.
    • Standalone Image (docker-compose.standalone.yml): Self-contained image with preinstalled gh and agy binaries, storing sessions inside Docker volumes.

🚀 Quickstart

# Clone the repository
git clone https://github.com/metagliatore/cli2api-llm-gate.git
cd cli2api-llm-gate

# Configure your environment
cp .env.example .env
nano .env

# Start the gateway
docker compose up -d

🐳 Container Images

Published to GitHub Container Registry (multi-arch linux/amd64, linux/arm64):

  • ghcr.io/metagliatore/cli2api-llm-gate:v1.0.0
  • ghcr.io/metagliatore/cli2api-llm-gate:latest