agentleFS
silasxbtsilasxbt/anti-api/CLAUDE.md

anti-api

CLAUDE.md519 starsChanged 3 months agoMITView on GitHub

- src/main.ts - CLI entry point - src/server.ts - Hono HTTP server setup - src/services/antigravity/chat.ts - Core chat logic - src/proto/encoder.ts - Protobuf encoding with model selection - Antigravity requests use the provider API directly; the old local language-server port discovery path is intentionally not part of the runtime. Models are specified via model parameter in requests. See MODEL_ENUM in encoder.ts for supported values. Supports /v1/messages, /v1beta/messages, and /messages endpoints for maximum compatibility. Hosted providers are wired through src/services/routing/router.ts (dispatch),…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. ink1ing/anti-api★ 519100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Files
CLAUDE.md

Anti-API Development Guide

Overview

Anti-API proxies Antigravity's internal AI models as an Anthropic-compatible API.

Key Files

  • src/main.ts - CLI entry point
  • src/server.ts - Hono HTTP server setup
  • src/services/antigravity/chat.ts - Core chat logic
  • src/proto/encoder.ts - Protobuf encoding with model selection
  • Antigravity requests use the provider API directly; the old local language-server port discovery path is intentionally not part of the runtime.

Model Selection

Models are specified via model parameter in requests. See MODEL_ENUM in encoder.ts for supported values.

API Compatibility

Supports /v1/messages, /v1beta/messages, and /messages endpoints for maximum compatibility.

Running

bun run src/main.ts start       # Default port 8964
bun run src/main.ts start -v    # Verbose logging

Providers

Hosted providers are wired through src/services/routing/router.ts (dispatch), src/services/routing/models.ts (model registry) and src/services/auth (account store / types). Current providers: antigravity, codex, copilot, zed, kiro, grok.

Grok (xAI)

  • Reverse proxy: https://cli-chat-proxy.grok.com/v1/responses (OpenAI Responses API).
  • Required headers: x-grok-client-version, x-grok-client-identifier.
  • Credentials can be imported from the local Grok CLI session (~/.grok/auth.json) after explicit user action; no standalone login flow is provided. Provider policy, quota, and account-enforcement decisions still apply.
  • Exposed models: grok-build (panel label Xbuild, maps to the real Grok 4.3 model) and grok-composer-2.5-fast (Composer 2.5 Fast).
  • Code: src/services/grok/oauth.ts, src/services/grok/chat.ts.

Maintenance Notes

  • Review every secret-scanning alert individually. For an OAuth installed-app identifier, verify from provider documentation whether it is intentionally public and whether reuse is permitted. Record the source, scope, authorization basis, and review result. Never commit personal credentials or confidential client secrets; remove and rotate any value whose confidentiality or authorization is uncertain.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.