Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

1021 B
Raw Blame
import type { RegistryEntry } from "../../shared.ts";
import { HYPERAGENT_FALLBACK_MODELS } from "../../../../services/hyperagentModels.ts";

// HyperAgent (hyperagent.com) — unofficial reverse-engineered web session.
// Auth: browser Cookie header. Chat: POST /api/threads/{id}/chat (SSE).
// Credits: GET /api/settings/billing/usage → creditData.creditBlocks.
/** Claude-family agent models on HyperAgent — 1M context (not the 128k openai default). */
const HYPERAGENT_CONTEXT_LENGTH = 1_000_000;

export const hyperagentProvider: RegistryEntry = {
  id: "hyperagent",
  alias: "ha",
  format: "openai",
  executor: "hyperagent",
  baseUrl: "https://hyperagent.com/api/threads",
  authType: "apikey",
  authHeader: "cookie",
  passthroughModels: true,
  /** Used by getTokenLimit when model-specific context is missing. */
  defaultContextLength: HYPERAGENT_CONTEXT_LENGTH,
  models: HYPERAGENT_FALLBACK_MODELS.map((m) => ({
    id: m.id,
    name: m.name,
    contextLength: HYPERAGENT_CONTEXT_LENGTH,
  })),
};