{
  "manifest_version": "1",
  "slug": "new-api",
  "title": "New API",
  "headline": "Run New API, an LLM gateway with quotas for your team",
  "description": "Run New API on exe.dev: one OpenAI-, Claude-, and Gemini-compatible API over your own provider accounts, with users, keys, quotas, and usage logs.",
  "category": "ai-apps",
  "tags": [
    "new api",
    "llm gateway",
    "ai gateway",
    "openai compatible api",
    "api keys",
    "llm quotas",
    "usage logs",
    "model routing",
    "claude code",
    "codex",
    "docker compose",
    "postgresql"
  ],
  "url": "https://exe.dev/deploy/new-api",
  "markdown_url": "https://exe-staging.dev/deploy/new-api.md",
  "upstream": {
    "website": "https://www.newapi.ai",
    "source": "https://github.com/QuantumNous/new-api",
    "docs": "https://docs.newapi.pro",
    "license": "AGPL-3.0"
  },
  "example_vm_name": "my-new-api",
  "time": "15 minutes",
  "stack": [
    {
      "name": "exe-oidc-proxy",
      "detail": "Signs people in to the console with their exe.dev login",
      "port": 3000
    },
    {
      "name": "New API v1.0.0-rc.51",
      "detail": "The gateway and its console, in Docker Compose",
      "data": "~/new-api/.env"
    },
    {
      "name": "nginx",
      "detail": "Serves only the model APIs, so this port can go public without the console",
      "port": 8000,
      "data": "~/new-api/nginx.conf"
    },
    {
      "name": "PostgreSQL 18",
      "detail": "Users, keys, channels, prices, and the usage log",
      "data": "~/new-api/postgres"
    },
    {
      "name": "Redis 8",
      "detail": "New API's cache, in memory"
    },
    {
      "name": "exe.dev LLM gateway",
      "detail": "Claude, GPT, Kimi, and GLM, without API keys"
    }
  ],
  "access": [
    {
      "url": "https://my-new-api.exe.xyz:3000/",
      "who": "private",
      "what": "New API's console, for you and anyone you share the VM with, signed in with exe.dev"
    },
    {
      "url": "https://my-new-api.exe.xyz/v1",
      "who": "private",
      "what": "The model APIs, with an exe.dev VM token and a New API key; make it public and the key is enough"
    }
  ],
  "delivers": [
    "New API's console at your VM's private URL, with you as its admin.",
    "Sign-in with exe.dev, so sharing the VM gives each person an account, with no password to manage.",
    "Claude, GPT, Kimi, and GLM from exe.dev's LLM gateway, priced at list prices, behind one OpenAI-, Claude-, and Gemini-compatible API.",
    "Accounts for your team, each with a quota in dollars, and keys with their own quota, expiry, and model list.",
    "A usage log of every request with its person, key, model, tokens, and cost; prompts aren't stored.",
    "An API-only address you can make public, while the console stays behind exe.dev login.",
    "Restarts after a reboot; nightly backups, with one checked."
  ],
  "deployable": true,
  "deploy": {
    "new_vm_url": "https://exe-staging.dev/new?prompt=Set%20up%20New%20API%20on%20this%20VM%20by%20following%20the%20exe.dev%20recipe%20at%20https%3A%2F%2Fexe-staging.dev%2Fdeploy%2Fnew-api.md%3Fvia%3Ddeploy%20from%20top%20to%20bottom.%0A%0AThe%20recipe%27s%20example%20VM%20name%20is%20my-new-api.%20This%20VM%27s%20name%20is%20the%20output%20of%20%60hostname%60%3A%20use%20it%20wherever%20the%20recipe%20writes%20my-new-api.%20Skip%20the%20step%20that%20creates%20the%20VM%3B%20you%20are%20on%20it.%0A%0AYou%20are%20done%20when%20all%20of%20these%20are%20true.%20Check%20each%20one%20yourself%3A%0A-%20New%20API%27s%20console%20at%20your%20VM%27s%20private%20URL%2C%20with%20you%20as%20its%20admin.%0A-%20Sign-in%20with%20exe.dev%2C%20so%20sharing%20the%20VM%20gives%20each%20person%20an%20account%2C%20with%20no%20password%20to%20manage.%0A-%20Claude%2C%20GPT%2C%20Kimi%2C%20and%20GLM%20from%20exe.dev%27s%20LLM%20gateway%2C%20priced%20at%20list%20prices%2C%20behind%20one%20OpenAI-%2C%20Claude-%2C%20and%20Gemini-compatible%20API.%0A-%20Accounts%20for%20your%20team%2C%20each%20with%20a%20quota%20in%20dollars%2C%20and%20keys%20with%20their%20own%20quota%2C%20expiry%2C%20and%20model%20list.%0A-%20A%20usage%20log%20of%20every%20request%20with%20its%20person%2C%20key%2C%20model%2C%20tokens%2C%20and%20cost%3B%20prompts%20aren%27t%20stored.%0A-%20An%20API-only%20address%20you%20can%20make%20public%2C%20while%20the%20console%20stays%20behind%20exe.dev%20login.%0A-%20Restarts%20after%20a%20reboot%3B%20nightly%20backups%2C%20with%20one%20checked.%0A%0ARead%20the%20whole%20recipe%2C%20including%20the%20closed%20details.%20For%20initial%20setup%2C%0Afollow%20%22Install%20by%20hand%22%20first%2C%20skipping%20VM%20creation%20and%20SSH%3A%20Docker%2C%20the%0Asecrets%2C%20the%20Compose%20stack%2C%20the%20admin%20account%2C%20exe.dev%20sign-in%2C%20the%0Achannels%20and%20prices%2C%20the%20model%20check%2C%20and%20the%20backups.%20Those%20checks%20are%20enough%3B%20don%27t%20install%0Aextra%20tools%20to%20test%20further.%20The%20walkthrough%20at%20the%20top%20is%20for%20the%20owner%0Aafterwards.%20Do%20not%20run%20Restore%20or%20Update.%0AWork%20as%20exedev%20in%20~%2Fnew-api.%20Never%20overwrite%20an%20existing%20.env%2C%20and%20never%0Aprint%20a%20secret%20from%20it%20or%20a%20New%20API%20key.%20Keep%20the%20console%20on%20port%203000%0Aand%20only%20the%20model%20APIs%20on%20port%208000.%0ALink%20the%20console%20to%20the%20owner%27s%20exe.dev%20email%20from%20the%20reflection%0Aintegration%3B%20if%20it%20prints%20nothing%2C%20ask%20the%20user%20for%20their%20exe.dev%20email.%0ATell%20the%20owner%20the%20console%27s%20URL%20and%20to%20sign%20in%20with%20%22Continue%20with%0Aexe.dev%22.%0ADon%27t%20create%20accounts%20or%20keys%20for%20other%20people%2C%20VM%20tokens%2C%20or%0Aintegrations%3A%20those%20are%20the%20owner%27s%20to%20hand%20out.%20Keep%20test%20prompts%20to%20a%0Aword%20or%20two.%20Don%27t%20share%20the%20VM%20or%20make%20it%20public.%20Verify%20docker.service%0Ais%20enabled%3B%20do%20not%20reboot.%0A%0AFinish%20with%20the%20URLs%20I%20should%20open.%0A",
    "terminal": "curl -fsSL https://exe-staging.dev/deploy/new-api/prompt.txt | ssh exe.dev new --prompt=/dev/stdin",
    "prompt": "Set up New API on this VM by following the exe.dev recipe at https://exe-staging.dev/deploy/new-api.md?via=deploy from top to bottom.\n\nThe recipe's example VM name is my-new-api. This VM's name is the output of `hostname`: use it wherever the recipe writes my-new-api. Skip the step that creates the VM; you are on it.\n\nYou are done when all of these are true. Check each one yourself:\n- New API's console at your VM's private URL, with you as its admin.\n- Sign-in with exe.dev, so sharing the VM gives each person an account, with no password to manage.\n- Claude, GPT, Kimi, and GLM from exe.dev's LLM gateway, priced at list prices, behind one OpenAI-, Claude-, and Gemini-compatible API.\n- Accounts for your team, each with a quota in dollars, and keys with their own quota, expiry, and model list.\n- A usage log of every request with its person, key, model, tokens, and cost; prompts aren't stored.\n- An API-only address you can make public, while the console stays behind exe.dev login.\n- Restarts after a reboot; nightly backups, with one checked.\n\nRead the whole recipe, including the closed details. For initial setup,\nfollow \"Install by hand\" first, skipping VM creation and SSH: Docker, the\nsecrets, the Compose stack, the admin account, exe.dev sign-in, the\nchannels and prices, the model check, and the backups. Those checks are enough; don't install\nextra tools to test further. The walkthrough at the top is for the owner\nafterwards. Do not run Restore or Update.\nWork as exedev in ~/new-api. Never overwrite an existing .env, and never\nprint a secret from it or a New API key. Keep the console on port 3000\nand only the model APIs on port 8000.\nLink the console to the owner's exe.dev email from the reflection\nintegration; if it prints nothing, ask the user for their exe.dev email.\nTell the owner the console's URL and to sign in with \"Continue with\nexe.dev\".\nDon't create accounts or keys for other people, VM tokens, or\nintegrations: those are the owner's to hand out. Keep test prompts to a\nword or two. Don't share the VM or make it public. Verify docker.service\nis enabled; do not reboot.\n\nFinish with the URLs I should open.\n",
    "prompt_url": "https://exe-staging.dev/deploy/new-api/prompt.txt"
  },
  "published": "2026-11-22",
  "updated": "2026-11-22",
  "verified": "2026-11-22",
  "related": [
    "llm-router",
    "open-webui",
    "librechat",
    "agent-secrets",
    "claude-code",
    "codex"
  ],
  "alternatives": [
    "LiteLLM",
    "One API",
    "OpenRouter",
    "Portkey"
  ],
  "files": [
    "https://exe-staging.dev/deploy/new-api/prices.sh"
  ]
}
