HarborHarbor
DocumentationGuidesPlugins
All plugins

OpenRouter API

List models, inspect credits, and call OpenRouter-compatible AI endpoints

APICategory: aiPopularity 92openrouter_api

List models, inspect credits, and call OpenRouter-compatible AI endpoints

Install

hrbr plugins install openrouter-api

Harbor calls https://openrouter.ai/api/v1 (driven by the upstream OpenAPI spec).

Quick start

hrbr exec 'return await openrouter_api.get({ /* see schema */ })'

Or from a Function:

import { defineOrbitJob } from "@hrbr/orbit";

export default defineOrbitJob({
  name: "openrouter-api-example",
  handler: async (ctx) => {
    return await ctx.plugins.openrouter_api.list({ limit: 5 });
  },
});

Tools

Tools are generated from the upstream OpenAPI spec. Inspect with:

hrbr plugins tools openrouter-api

Or open the dashboard plugin page for the live tool list.