# Nasiko

> One control-plane process that deploys, routes, secures and traces an A2A agent fleet

- Category: Agents & Automation / Multi-Agent Systems
- Language: Rust
- Licence: Apache-2.0
- Repository: https://github.com/Nasiko-Labs/nasiko
- Website: https://www.nasiko.com
- Canonical page: https://ai-tldr.dev/tools/nasiko/

## In short

Nasiko is One control-plane process that deploys, routes, secures and traces an A2A agent fleet. It sits in the Multi-Agent Systems category of the Agents & Automation tools and is open-source, written in Rust and licensed Apache-2.0. To get started: clone and configure.

## Overview

Running two agents is a programming problem; running twenty is an operations problem — who calls whom, which key each agent holds, what a call cost, why it failed. Nasiko is a single control-plane process that answers those questions for any agent that speaks the A2A protocol, in whatever language it is written: Python, Rust, Go or TypeScript, with no proprietary agent format.

The architectural commitment is that there is no separate gateway and no sidecar. Nasiko terminates TLS, authenticates every request, and proxies all agent-to-agent traffic through itself, so agents are never publicly reachable and every hop becomes a checkpoint for rate limits, ACLs and tracing. Requests either go through the routing engine — a three-stage pipeline that shortlists by embedding similarity, reranks on conversation context, then has an LLM make the final pick — or are proxied generically, and both paths originate inside the server.

Credentials never reach the agents. The LLM Router hands each agent an `OPENAI_BASE_URL` and a short-lived identity token, resolving the real provider, model and key server-side, so no agent and no log ever sees an API key; the MCP Gateway does the same for tools, giving every agent one permanent URL with a merged, permission-filtered view of Composio toolkits and custom MCP servers without holding the credentials. Per-agent secrets are AES-256-GCM encrypted at rest and injected only at deploy time.

Around that sit the operational parts: an embedded S3-backed OCI registry with layer dedup so `nasiko push` and `nasiko deploy` need nothing external, Redis-backed flow guards (depth, fan-out, token budget, timeout, cycle detection) that stop runaway agent loops, ownership/grant access control plus an independent agent-to-agent allowlist, and a real OpenTelemetry span per dispatch and proxy hop so a whole fan-out reads as one end-to-end trace with token usage and cost collected from `gen_ai.*` attributes.

## What it does

- Deploy anything that speaks A2A — `nasiko deploy` builds, pushes to the embedded OCI registry and runs it, with no external registry required
- Three-stage routing engine: shortlist by embedding similarity, rerank on conversation context, then an LLM final pick, so callers need not know the fleet
- Single ingress, always proxied — agents are never publicly reachable and every agent-to-agent call passes the same chokepoint
- LLM Router and MCP Gateway hold the credentials, handing agents a base URL and a short-lived identity token instead of real keys
- Flow guards backed by Redis — cascade depth, fan-out, token budget, timeout and cycle detection — to stop runaway loops
- Full OpenTelemetry tracing with auto-collected token usage and cost, plus AES-256-GCM encrypted per-agent secrets and two independent layers of access control
- CLI-first workflow (`nasiko new`, `run`, `chat`, `deploy`) with an embedded web dashboard

## Getting started

The Docker-only path needs nothing but Docker with Compose V2 — the server compiles itself from source inside the image. Rust 1.85+ is needed only for the CLI / developer path. Agents must speak A2A spec v1.0 exactly; Nasiko hardcodes the A2A-Version: 1.0 header and rejects older spec versions.

1. Clone and configure

   Copy the example environment file and fill in the two required values.

```bash
git clone https://github.com/Nasiko-Labs/nasiko.git
cd nasiko
cp .env.example .env
```

2. Set the minimum environment

   OPENAI_API_KEY is used by the routing engine and injected into agents; ADMIN_PASSWORD is the bootstrap admin account.

```bash
# in .env
OPENAI_API_KEY=...
ADMIN_PASSWORD=...
```

3. Start the platform

   This brings up Postgres, Redis, RustFS (S3), the OTel Collector, Tempo, Loki and nasiko-server. The first build takes a few minutes because Rust compiles inside Docker; later builds are fast.

```bash
docker compose up -d
```

4. Open the dashboard

   Log in with ADMIN_USERNAME / ADMIN_PASSWORD (default admin / changeme) to deploy agents, route traffic, manage tools and watch traces.

```text
# http://localhost:8080
```

5. Day-to-day commands

```bash
docker compose logs -f server   # follow server logs
docker compose up -d --build    # rebuild after pulling new changes
docker compose down             # stop everything
```

## When to use it

- Put a fleet of agents written in different languages behind one authenticated ingress, so none of them is directly reachable from the internet
- Stop handing API keys to agents — let the router resolve provider, model and key server-side and keep keys out of agent code and logs
- Answer 'what did that agent run cost and where did it fail' from a single OpenTelemetry trace spanning every dispatch and proxy hop
- Contain a misbehaving agent graph with depth, fan-out, token-budget and cycle limits before it burns a budget
