Skip to content
Open source

Application for Otoroshi · Open source

Otoroshi API Management

The API management console and developer portal for Otoroshi.

Describe your APIs as products, publish them and let consumers subscribe from a developer portal, without ever opening the gateway. Plans, subscriptions, paid plans, usage reports and GitOps, on top of Otoroshi.

Stars
0
Language
JavaScript
License
Apache-2.0
Last update
today
Get started
# one executable, beside Otoroshi 18.1 and PostgreSQL
otoroshi-apim serve --config apim.toml

# describe, publish and deploy an API
otoroshi-apim apply default -f petstore.yaml --publish --deploy
otoroshi-apim apis deploy default petstore --dry-run
otoroshi-apim drift default

Features

What's inside

APIs as products

An API, its backends, flows, documentation and plans in a draft, published as immutable snapshots and deployed when you decide.

Plans & subscriptions

Rate limits and quotas, API keys, OAuth2, JWT, mTLS or keyless access, subscriptions approved automatically or reviewed by the team of the API.

A developer portal per workspace

Consumers browse the catalogue, read the documentation and the announcements, try the API, subscribe and get their credentials.

Paid plans & terms

Sell a plan through Stripe, or give its subscriptions a term, like a 15-day trial or a year paid once, renewed from the portal.

GitOps, admin API & CLI

Everything goes through the admin API, with declarative documents, a command line with dry runs, remote catalogs and Kubernetes resources.

Drift detection

What the gateway holds is compared with what was deployed, and what already runs on Otoroshi can be adopted into the catalogue.

Usage & reports

Usage by API, plan, application or endpoint, and reports for the business, downloaded as a spreadsheet or CSV.

Announcements, emails & webhooks

Tell consumers what changes, by email if you wish, and send the events of the product to other systems through signed webhooks.

Never in the request path

Policies are projected into Otoroshi, which enforces them. If the product is down, traffic still flows.

The console

Describe, publish,
deploy.

Producers describe an API in a draft: its backends, its flows and policies, its OpenAPI or AsyncAPI documentation, its plans. They publish an immutable snapshot, see what will change on the gateway, and deploy it. The console also reviews subscription requests, announces what changes and follows the usage of every API.

  • Drafts & immutable snapshots
  • Gateway diff before deploying
  • Subscription reviews
  • Announcements
apim · APIs › Books
The page of an API in the console: how to call it, its plans and their resolution order on the gateway, a subscription request waiting for review

The developer portal

A portal
for every workspace.

Each workspace has its own developer portal, with its theme and its pages. Consumers browse the catalogue, read the documentation, try the API from their browser, subscribe from their applications and get their credentials, a key per subscription or one for every API of an application. Then they follow their consumption, key by key, and write to the team of the API.

  • Catalogue & documentation
  • Try the API in the browser
  • Self-service subscriptions
  • Usage, key by key
portal · Books › Plans
The plans of an API in the developer portal: free, partner and premium plans with their authentication, rate limits, quotas and approval mode

GitOps

As code,
with a dry run.

The admin API is the only way to do anything, and the console uses the very same one. Describe your APIs in declarative documents, apply them from a pipeline with the command line, sync a remote catalog from git, S3 or HTTP, or manage them as Kubernetes resources. Every deployment shows the gateway diff first, and drift detection tells you when the gateway no longer holds what was deployed.

  • Declarative documents
  • CLI with dry runs
  • Drift detection & adoption
  • Kubernetes resources
apim · Deploy to the gateway
Deploying a snapshot to the gateway: the catalogue changes and the gateway changes, shown before anything is written

Reports

Usage reports,
for the business.

Reports give the usage of the APIs over a period, grouped by API, plan, application, team or subscription, compared with the period before and counted the way billing counts it, with the prices of the plans. Read them in the console or download them as a spreadsheet or CSV. The viewers of a workspace read the dashboards and the reports, and nothing else.

  • By API, plan, application or team
  • Spreadsheet & CSV export
  • A viewer role for the business
  • Prometheus & OpenTelemetry metrics
apim · Reports
Usage reports in the console: calls, errors and billed calls of the last 30 days, by application, compared with the period before

Architecture

Never in
the request path.

Otoroshi API Management drives your Otoroshi cluster through its Admin API: it projects the APIs, plans and subscriptions as Otoroshi entities, and Otoroshi enforces them. The events of the gateway come back through a data exporter to compute the usage. One stateless executable or image, several instances if you need them, and PostgreSQL: if the product is down, traffic still flows.

  • Otoroshi enforces every policy
  • One executable or one image
  • PostgreSQL
  • Helm chart & Kustomize
Architecture: the console, the developer portals, the admin API and the ingester drive an Otoroshi cluster through its Admin API and read its events, with PostgreSQL; the requests of the consumers go from their apps to the gateway and the backends, the product never in that path

Roadmap

A beta today, more to come.

The beta manages REST APIs on one Otoroshi 18.1 cluster. Next on the list:

LLM APIs

An API in front of one or several AI providers, with budgets and plans counted in tokens, through the LLM extension.

Learn more

MCP APIs

MCP servers exposed, subscribed to and observed like any other API.

Event-driven APIs

Event brokers behind the gateway, documented with AsyncAPI, their messages counted, through the event brokers extension and Events Studio.

Learn more

A European payment provider

Beside Stripe Connect, for the paid plans.

Several gateways

One portal and one catalogue, with APIs deployed on more than one Otoroshi cluster.

API quality

Specifications linted, and an API scored and reviewed before it is published.

More open-source projects

Run it in productionwithout running Otoroshi.

Our extensions are available on Otoroshi Managed, fully operated by the people that wrote them. Or get professional support for your own clusters.