Skip to content

GitHub technical reference

This page is generated from sync/contract.json and points to canonical technical docs in the octafuse-gateway repository. This website keeps user-facing summaries; APIs, deployments, migrations, architecture, and behavior semantics live with gateway code.

DocWhat it covers
Documentation indexEntry points organized by users, developers, operators, and maintainers.
QuickstartMinimal Docker and Cloudflare local D1 startup paths.
Admin configurationConfigure Providers, model routing, Agent Tools, users, and API keys after deployment.
Feature mapOverview of protocols, Agent Tools, route strategies, billing, administration, and deployment.
DocWhat it covers
System integrationBoundaries, key types, and common flows for portals, backends, or SaaS integrations.
API overviewProxy/Admin base URLs, authentication, and error shapes.
User-facing APIsOpenAI / Anthropic / Gemini, Images, Audio, Agent Tools, model lists, and budget state.
Admin HTTP APIAPIs for Providers, models, routing, Tools, users, keys, billing config, logs, and analytics.
Local development and testingD1, Node + Postgres, Node + MySQL, Docker, and smoke test combinations.
DocWhat it covers
Runtime and data storageCloudflare / Node and D1 / Postgres / MySQL combination matrix.
Route topologyRequest Surface → Route Pool → Upstream Target relationships, operations, Provider Sticky, and failover boundaries.
Route strategiesAlgorithms, tier overrides, precedence, and Provider Sticky for hash_affinity, weighted_random, weight_priority, and weighted_round_robin.
Proxy request lifecycleAuth, Surface / Pool / Target resolution, four strategies, Provider Sticky, circuits, failover, and async billing.
Users and API key data modelRelationships and constraints for users, API keys, budgets, request logs, and audit logs.
Streaming billing and cancellationStreaming chat, client cancellation, usage parsing, and charge state.
Image modelsgpt-image-2 and Seedream: endpoints, parameters, billing conversion, and ops acceptance.
Time and timezoneUTC storage, API output, Admin display, and business day boundaries.
DocWhat it covers
Deployment patternsOverview of Cloudflare, Hybrid, full self-hosted, MySQL, and Zeabur modes.
Cloudflare deploymentWorker, Admin, D1, Build variables, Workers Builds, and migration order.
Docker / self-hostedDocker images, Compose, GHCR, Postgres / MySQL, and Zeabur notes.
Gemini models.generate migrationMigration 0017: merge streaming and non-streaming Surfaces, handle conflicting Pools, and verify Gemini wire actions.
Priority-tier route strategy migrationMigration 0018: add Route Pool tier_strategies with deployment order and acceptance checks.
Canonical route strategy ID migrationMigration 0019: the historical 2.2.0 strategy-ID cutover and persisted-policy validation.
Provider Sticky migrationMigration 0020: add Route Pool Sticky configuration and shared bindings, with v2.3.0 deployment order and operations.
Route strategy display-ID migrationMigration 0021: hard-cut cache_affinity / fixed_order to hash_affinity / weight_priority with no old-ID aliases.
D1 ↔ Postgres cutoverETL, reconciliation, canary, cutover, and rollback notes.
Cloudflare command cheatsheetCommands for Cloudflare local dev, dev demo, and production Git deploy.
DocWhat it covers
Release and versioningChangesets, Version PRs, tags, GitHub Releases, and GHCR images.
Documentation boundaries and secret hygieneRepository docs layers, website boundaries, placeholders, and forbidden values.
Minimal curl examplesMinimal curl commands for health, user inference, an Agent Tool, and an Admin auth probe.