Aerun API - Backend HTTP/SSE (Bun + Hono + Drizzle + PostgreSQL + Valkey)
  • TypeScript 99.3%
  • Shell 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-05 22:35:56 +00:00
artifacts/gate2 fix(routing): put reference model first in tier ladder 2026-07-19 07:33:10 -03:00
docs feat: implement aerun coder multimodal benchmark 2026-08-05 22:35:56 +00:00
drizzle feat: implement aerun coder multimodal benchmark 2026-08-05 22:35:56 +00:00
scripts feat: implement aerun coder multimodal benchmark 2026-08-05 22:35:56 +00:00
src feat: implement aerun coder multimodal benchmark 2026-08-05 22:35:56 +00:00
test feat: implement aerun coder multimodal benchmark 2026-08-05 22:35:56 +00:00
.env.example feat(api): consolidate tier routes into tier_upstream_model table 2026-07-19 21:56:04 -03:00
.env.test init: Aerun API - backend HTTP/SSE (Bun + Hono + Drizzle + PostgreSQL + Valkey) 2026-07-17 23:15:51 -03:00
.gitignore chore: migrate deploy paths and secret hygiene to aerun-ai-js 2026-08-02 21:00:30 +00:00
.prettierignore chore: migrate deploy paths and secret hygiene to aerun-ai-js 2026-08-02 21:00:30 +00:00
AGENTS.md fix: public_model.provider agora reflete o provider real 2026-07-20 06:50:39 -03:00
bun.lock fix(api): add COHERE_API_KEY to entrypoint and update bun.lock 2026-07-19 08:06:27 -03:00
bunfig.toml init: Aerun API - backend HTTP/SSE (Bun + Hono + Drizzle + PostgreSQL + Valkey) 2026-07-17 23:15:51 -03:00
direct-entrypoint.sh feat: implement aerun coder multimodal benchmark 2026-08-05 22:35:56 +00:00
drizzle.config.ts init: Aerun API - backend HTTP/SSE (Bun + Hono + Drizzle + PostgreSQL + Valkey) 2026-07-17 23:15:51 -03:00
Gemini_Generated_Image_mzdifvmzdifvmzdi.png init: Aerun API - backend HTTP/SSE (Bun + Hono + Drizzle + PostgreSQL + Valkey) 2026-07-17 23:15:51 -03:00
package-lock.json fix: move ts-prune to devDependencies 2026-07-18 00:33:34 -03:00
package.json fix: add listFxRates type, fx sync script/entrypoint wiring 2026-08-02 22:32:19 +00:00
README.md feat: switch API to transparent OpenRouter pricing 2026-07-20 19:36:30 -03:00
tsconfig.json init: Aerun API - backend HTTP/SSE (Bun + Hono + Drizzle + PostgreSQL + Valkey) 2026-07-17 23:15:51 -03:00

Aerun API

Transparent OpenAI-compatible proxy for canonical OpenRouter models. Customers pay the approved public OpenRouter catalog price; discounted internal sources remain private and determine Aerun's margin, never the customer rate.

Start with the documentation index and the localhost runbook.

install -m 600 .env.example .env
# Edit .env and set OPENCODE_API_KEY plus unique local encryption/pepper values.
# Start native PostgreSQL and Valkey services first.
bun install
bun run db:migrate
bun run db:seed
bun run prices:sync-openrouter
bun run dev

Bun loads .env automatically. The file is Git-ignored and should remain mode 0600; .env.example contains variable names and non-secret placeholders only.

Validation:

bun run test:bootstrap
bun run validate
bun run scan:secrets

Production runs directly on the host with Bun and systemd. PostgreSQL and Valkey are host services; see deploy/deploy.sh and the systemd units under deploy/.