whatisgithub

What is upstream-ops?

bejix/upstream-ops — explained in plain English

Analysis updated 2026-05-18

58GoAudience · ops devopsComplexity · 4/5Setup · moderate

In one sentence

A Go dashboard that centrally monitors and gateways multiple NewAPI or Sub2API AI provider accounts, balances, and API keys.

Mindmap

mindmap
  root((UpstreamOps))
    What it does
      Monitors upstream accounts
      Tracks balances and rates
      Sends alert notifications
    Tech stack
      Go
      OpenAI compatible gateway
      Anthropic compatible gateway
    Use cases
      Manage many AI provider accounts
      Route requests with failover
      Sync Sub2API upstream groups
    Audience
      AI API resellers
      Ops teams
      Proxy service operators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Monitor balances and spending across many AI API provider accounts from one dashboard.

USE CASE 2

Get alerted when an upstream account's balance runs low or its rates change.

USE CASE 3

Route API requests through a gateway with automatic failover between providers.

USE CASE 4

Synchronize account groups and model lists between Sub2API upstreams.

What is it built with?

GoNewAPISub2APIOpenAI APIAnthropic APICloudflare Turnstile

How does it compare?

bejix/upstream-opsdream-horizon-org/datagenrealrenatto/take-over
Stars585957
LanguageGoGoGo
Setup difficultymoderateeasyeasy
Complexity4/52/52/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires existing NewAPI or Sub2API upstream accounts to connect and monitor.

The README does not state a license.

So what is it?

UpstreamOps is a dashboard for people who manage several AI API provider accounts at once, specifically for services built on the NewAPI or Sub2API systems. If you resell or route access to AI models and have to log into multiple separate admin panels to check balances, rates, and account health, this tool pulls all of that into one central place instead. The dashboard tracks account balances, spending, and pricing rates across every connected upstream, and checks them automatically on a schedule rather than requiring manual logins. It watches for problems such as low balances, sudden rate changes, failed logins, or subscriptions about to expire, and can send notifications when something needs attention. It also keeps a history of balance snapshots, rate changes, and past alerts so patterns can be reviewed later. Beyond monitoring, UpstreamOps includes a request gateway that is compatible with OpenAI, Anthropic Claude, and similar API formats. Through this gateway, a user can create their own API keys that route requests to one of several connected upstream providers, with automatic failover if one provider errors out, and the ability to convert requests between different API formats on the fly. It also logs detailed usage data per request, including token counts and estimated cost, and calculates final billed cost using configurable pricing rules. For teams working with Sub2API specifically, the tool can synchronize account groups, proxy settings, and model lists between a source and a target upstream, and supports testing accounts against a chosen model before relying on them. Channel management also supports different login credential types, custom sort ordering, and Cloudflare Turnstile handling for upstreams that require it. UpstreamOps is written in Go and is best suited for operators running AI API reselling or proxy businesses who need a single, automated view of accounts, spending, and reliability across many upstream providers at once. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Explain how UpstreamOps monitors balances and rates across multiple NewAPI upstream accounts.
Prompt 2
Walk me through setting up the UpstreamOps request gateway with failover between providers.
Prompt 3
Show me how UpstreamOps converts requests between OpenAI, Anthropic, and Responses API formats.
Prompt 4
Help me configure a Sub2API synchronization group with proxy and model settings in UpstreamOps.

Frequently asked questions

What is upstream-ops?

A Go dashboard that centrally monitors and gateways multiple NewAPI or Sub2API AI provider accounts, balances, and API keys.

What language is upstream-ops written in?

Mainly Go. The stack also includes Go, NewAPI, Sub2API.

What license does upstream-ops use?

The README does not state a license.

How hard is upstream-ops to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is upstream-ops for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.