2026-11-27 16:22 UTC

Harelix introduces experimental local LLM gateway Aiport

state: expiredheat: lowuncertainty: mediumrelevance: mediumlocal-llm model-gateway coding-agentharelix

What is this?

Harelix, a solo maintainer, presents Aiport as an experimental, Apache-2.0 local LLM gateway for apps and coding agents. The GitHub project says it runs on loopback, routes requests to configured hosted or local providers, and keeps provider keys separate from client tokens. It records request metadata but not prompts or responses; based on that metadata and optional user feedback, it proposes routing, prompt-compression, and app-fix changes for approval, with changes reversible. The project was listed on Hacker News on Nov. 8, 2026; the supplied evidence is the maintainer’s project documentation, with no independent validation or adoption evidence.

Why it matters

Aiport explores a useful direction for people juggling coding agents, model providers, and local inference: a single local control point that can learn from usage and feedback without retaining prompt contents. If its suggestions work, it could make model choice, cost/quality trade-offs, and recurring integration fixes easier for individual developers and small app projects. Its reach is limited for now: it is explicitly experimental, compatibility has not passed the project’s live gate for any provider/agent combination, it does not measure tokens or cost, and setup currently requires building from source.

Current assessment

What is new: Harelix’s project documentation describes Aiport as available to build and run locally, not as a mature or independently validated release. It offers OpenAI- and Anthropic-style client interfaces, provider presets including hosted services and Ollama/llama.cpp, per-app or agent tokens, and a dashboard for reviewing suggestions and issues. The maintainer says prompts and responses are not logged; metadata such as app, model, latency, status, and failure reason drives the improvement loop. Compression is opt-in and gets a quality verdict based on available feedback; routing suggestions use user thumbs-up/down. Proposed changes require approval unless that setting is changed, and are reversible. The project says agent-assisted fixes run in a separate git worktree and do not commit to the user’s branch, merge, or push. Important limits and uncertainties: the project labels itself experimental, says no provider/agent combination has passed its live compatibility gate, and has no release downloads yet. Protocols are not translated, Gemini model calls do not pass through Aiport, and Codex uses its own login. These are maintainer-described capabilities and safeguards; the supplied sources do not independently verify them, show real-world performance, or establish adoption. The broader implication, if the approach proves reliable, is more accessible per-user model routing and feedback-driven tuning without centralizing prompt logs; current evidence supports treating it as an early experiment, not a demonstrated cost or quality improvement.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p23momentum: steady2 platformsage 527h
points/hour across evidence · reading as of 2026-11-22 23:22:28.401005+11:00 · deterministic, not a model opinion

How the heat travelled

10-31 13:00⭐ origin echo-reconstructedThe repository itself is the original artifact: its README describes aiport as “A self-improving local LLM gateway for the erratic vibe code
harelix on github (echo) · attributed from hn.story.50412418
—
11-08 11:44first on hacker news · published · +190.7hAiport: A self-improving local LLM gateway for the erratic vibe coder
harelix
—
11-08 11:44amplified on hacker news 👑hn.story.50412418
harelix
peak 1 · 0 comments · 104% of case engagement
11-08 12:21our radar first saw it · +191.4hdiscovery anchor: hn.story.50412418—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnAiport: A self-improving local LLM gateway for the erratic vibe coder
Retrieved article excerpt

Open article · Retrieved 2026-11-08T12:22:43.370790+00:00

[aiport logo](https://github.com/harelix/aiport/blob/main/docs/images/logo-256.png)

# aiport

**A self-improving local LLM gateway for the erratic vibe coder.**

[CI](https://github.com/harelix/aiport/actions/workflows/ci.yml)
[License: Apache-2.0](https://github.com/harelix/aiport/blob/main/LICENSE)
[Go 1.27+](https://camo.githubusercontent.com/136c902b46d461d2c06d14bb3cb627ebd7da179987447f3cec8e62e7887df6a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f676f2d312e32372532422d383843304430)
[Status: experimental](https://camo.githubusercontent.com/f15867c267ace8647ac2f59dcb58327ed9cca57a4e7aef2d7a78206385f18450/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6578706572696d656e74616c2d454243423842)

[Quickstart](https://github.com/harelix/aiport#quickstart) ·
[Manual](https://github.com/harelix/aiport/blob/main/docs/manual.md) ·
[Connect an application](https://github.com/harelix/aiport/blob/main/docs/connect.md) ·
[Configuration](https://github.com/harelix/aiport/blob/main/docs/configuration.md) ·
[Contributing](https://github.com/harelix/aiport/blob/main/CONTRIBUTING.md)

[The aiport dashboard: provider Connections with their keys saved, protocol defaults and connection checks](https://github.com/harelix/aiport/blob/main/docs/images/providers-sc.png)

## Who it is for

If you're an erratic vibe coder, you know the day: Claude Code in one repo, Codex in another, a model on Ollama or llama.cpp, and credits on Bedrock, Anthropic, OpenAI and Meta. You switch models by task, sometimes mid-task, and jump between projects several times an hour. The apps you build call those models too, so each one ends up re-wiring the same providers. You can't see which app called what, and you find out about failures when something breaks.

aiport is a Go program that runs on your machine (loopback only) and sits between your apps, your coding agents and the providers.

## The basics

- **One client per app.** One OpenAI-style or Anthropic-style client, pointed at aiport, instead of setup code per provider.
- **Keys stay in aiport.** Provider keys live in a private env file (mode 0600, plain text, never in the YAML config). Each app and agent gets its own revocable token. An app's coding agent connects it, and you approve a short pairing code.
- **Agents without your keys.** `aiport agent claude` or `aiport agent codex` launches an agent with its own token, so it never sees your provider keys.
- **Name the need.** Apps name a model, ask for `fast`, `balanced` or `best`, or name a task and an effort.

## The part that improves over time

aiport watches how your apps use models and proposes changes. Nothing is applied without your approval unless you turn that on, and every change can be reverted.

- **Compression with a quality check.** Apps can opt in to smaller prompts. aiport tracks answer quality per compression method and shows a verdict for each: no harm seen, possible harm, or not enough data.
- **Routing from human feedback.** Thumbs up and down from your app's users become suggestions for which model should handle which requests.
- **Self-healing apps.** Repeated failures are grouped into Issues, each with a fix on both sides: a change to aiport for you to approve, and instructions for the app's coding agent. **Fix it** can also run a coding agent in a separate git worktree. You review the diff, and if you keep it, aiport commits it on a new branch. aiport never commits to your branch, merges or pushes.
- **Minimal observability, on purpose.** Every call is logged as metadata only: app, model, effort, latency, status and failure reason. Prompts and responses are never stored. That's enough to drive the loop above without keeping your data.

## Design choices and limits

- **Native formats.** Requests pass through in each provider's native format with no translation, to avoid lossy conversion of tool calls and streaming. The trade-off is that a client only reaches providers that speak its protocol.
- **Single user by design.** No teams or budgets. LiteLLM, Portkey or Bifrost fit those needs better.

## How it works

```
flowchart LR
  A["Applications<br/>and coding agents"] -- "own aiport token" --> G(("aiport"))
  G -- "provider key added" --> P["Providers<br/>OpenAI · Anthropic · Bedrock · Meta<br/>Ollama · llama.cpp"]
  G -. "Issues and Suggestions" .-> O["You, in the dashboard"]
  O -. "approve, revert" .-> G
```

 Loading

Applications call aiport with their own token. aiport routes each call to the provider you chose, keeps the metadata, and turns repeated failures into Issues you can fix from the dashboard, or hand to the application's coding agent.

## Quickstart

You need **Go 1.27+** (`brew install go`, or [go.dev/dl](https://go.dev/dl)). Dependencies are vendored and the dashboard is pre-built, so nothing else is downloaded.

```
git clone https://github.com/harelix/aiport && cd aiport
make build              # bin/aiport, dashboard included
./bin/aiport init       # choose providers and coding agents; writes aiport.yaml
./bin/aiport serve      # prints the dashboard address and management token
```

Or install the binary without cloning: `go install github.com/harelix/aiport/cmd/aiport@latest` (it lands in `$(go env GOPATH)/bin`; run `aiport init` and `aiport serve`).

Open the dashboard address `serve` prints (**<http://127.0.0.1:8787/>** by default; `init --listen` picks another, and you can [use `aiport.localhost` instead](https://github.com/harelix/aiport/blob/main/docs/manual.md#use-a-name-instead-of-127001)), paste the management token and set a password. Paste your provider keys on **Providers**, then **Check connection** on each card: it makes one free `GET /models` call and generates nothing. Start any local provider (Ollama, llama.cpp) yourself.

## Using it

- **Connect an application.** On **Integrate**, open **Instructions** at the top and copy them to the coding agent working on the application. It switches the application's SDK to `http://127.0.0.1:8787` and pairs it; you approve the short code it shows. The application's token goes in a gitignored `.aiport` file at its repository root, read by both the application and its coding agent; **New token** replaces a lost one and the trash icon removes an application. See [Connect](https://github.com/harelix/aiport/blob/main/docs/connect.md).
- **Launch a coding agent through aiport.** `./bin/aiport agent claude --model MODEL` or `./bin/aiport agent codex --model MODEL` (add `--dry-run` to inspect). The agent gets its own token, never your provider keys.
- **Decide on Changes.** Issues, Suggestions and Change requests wait on **Changes**, with a badge only when one needs you. Every Change can be reverted.

The [manual](https://github.com/harelix/aiport/blob/main/docs/manual.md) covers every page. It is also built into the dashboard: press the help button, or the ⓘ next to any section.

## Configuration

`init` writes `aiport.yaml` and a private `aiport.yaml.env` (mode 0600) for local tokens and the keys you paste in the dashboard. It never overwrites a file, and provider keys never go into YAML.

```
./bin/aiport init --provider openai,anthropic --agent codex,claude   # without prompts
./bin/aiport check                                                    # validate the configuration
./bin/aiport auth token                                               # print the management token again
```

Provider presets: `openai`, `anthropic`, `bedrock`, `meta`, `ollama`, `llamacpp`. See the [configuration reference](https://github.com/harelix/aiport/blob/main/docs/configuration.md) and [`aiport.example.yaml`](https://github.com/harelix/aiport/blob/main/aiport.example.yaml).

## Security and data

- Calls go only to the providers you configured, with that provider's key. aiport stores request metadata (time, application, model, status, latency), never prompts or responses.
- **Agent runs** start a coding agent you installed (Claude Code, Codex or Gemini CLI) in a separate git worktree, only when you click. Commands ask you first, and aiport never commits to your branch, merges or pushes. An agent's own settings can allow more than aiport sees: read [what aiport cannot see](https://github.com/harelix/aiport/blob/main/docs/manual.md#explain-by-a-coding-agent) first.
- [Extensions](https://github.com/harelix/aiport/blob/main/docs/extensions.md) you add take part in decisions about Change requests.
- Found a vulnerability? Report it privately as [SECURITY.md](https://github.com/harelix/aiport/blob/main/SECURITY.md) describes, not in a public issue.

## Limitations

aiport is experimental. No provider and coding-agent combination has passed the live [compatibility](https://github.com/harelix/aiport/blob/main/docs/compatibility.md) gate yet. Token counts and cost are not measured. A provider must speak the protocol of the client calling it, since aiport does not translate. Gemini runs' model calls do not go through aiport, and Codex runs use Codex's own login. There are no release downloads yet; build from source.

## Contributing

aiport is maintained by one person in their spare time: issues and pull requests are read, but replies are best effort and may take a while. See [CONTRIBUTING.md](https://github.com/harelix/aiport/blob/main/CONTRIBUTING.md) and the [code of conduct](https://github.com/harelix/aiport/blob/main/CODE_OF_CONDUCT.md). CI runs on every push; locally, run `make test`, `make check` and `make check-offline`, and sign off every commit (DCO). Larger changes start from [the design](https://github.com/harelix/aiport/blob/main/docs/design.md); the vocabulary is in the [glossary](https://github.com/harelix/aiport/blob/main/GLOSSARY.md), and dependency licenses are in [THIRD\_PARTY.md](https://github.com/harelix/aiport/blob/main/THIRD_PARTY.md).

## License

[Apache-2.0](https://github.com/harelix/aiport/blob/main/LICENSE). The aiport name and logo are covered by [TRADEMARKS.md](https://github.com/harelix/aiport/blob/main/TRADEMARKS.md).
harelix10
🟧 echo.github ⭐The repository itself is the original artifact: its README describes aiport as “A self-improving local LLM gateway for the erratic vibe codeharelix——

Interpretation history

Decision trace