π¦ A lightweight, streaming-native, multi-protocol gateway for AI, APIs, and real-time data. Route LLM requests across providers, govern MCP tools, and connect Kafka, MQTT, and HTTP through one high-performance engine with shared security and observability.
[![Latest Release][release-latest-image]][release-latest]
[![Slack Community][community-image]][community-join]
[![Artifact HUB][artifact-hub-shield]][artifact-hub]
Before moving on, please consider giving us a GitHub star βοΈ. Thank you!
Zilla is a streaming-native, multi-protocol gateway for AI, APIs, and real-time data.
Connect applications to LLMs, give AI agents governed access to enterprise tools, and expose Kafka streams through application-friendly protocols. Zilla provides protocol translation, routing, security, and observability in a lightweight, stateless runtime, configured declaratively in zilla.yaml.
One engine, many use cases. LLM access, MCP tool connectivity, and event streaming are different routes through the same gateway, not separate proxy products to deploy and operate.
Expose Kafka through REST, SSE, WebSocket, gRPC, and MQTT without building custom protocol bridges. Validate schemas, control access, and connect browsers, services, and devices to event streams. With Zilla Plus, transparently proxy native Kafka clients and Kafka Connect, including across network boundaries.
Explore: Kafka Gateway Β· Kafka use cases Β· REST example
Keep using supported OpenAI, Anthropic, and Gemini SDKs while Zilla routes requests to the right model provider. Translate supported chat and tool-call workflows across APIs, stream responses, apply configurable guardrails, and observe token usage and latency. Configure fallback for unreachable model deployments.
Explore: LLM Gateway Β· Cross-provider demo
Present one MCP endpoint for existing MCP servers, HTTP/OpenAPI services, and Kafka. Expose Kafka topics, Kafka Connect, and Schema Registry operations as MCP tools without custom wrapper services. Authorize what each caller can discover and invoke, and keep large tool catalogs manageable with eager and on-demand discovery.
Explore: MCP Gateway Β· MCP example
Kafka and AI solve different problems. Kafka moves real-time data, LLM APIs connect applications to models, and MCP connects agents to tools. But the infrastructure needed to connect them has much in common: routing, identity, access control, protocol mediation, policy enforcement, and observability.
Zilla was built as a streaming-native, multi-protocol engine rather than a collection of standalone proxies. Protocol-aware bindings connect clients and backends, while routing, security, telemetry, and declarative configuration are managed through the same runtime. Each protocol retains its own semantics and specialized controls.
That architecture matters both when these workloads are separate and when they intersect. Use Zilla to govern LLM access without Kafka, to expose Kafka without AI, or to connect them directlyβfor example, letting an agent discover and invoke Kafka-backed tools through MCP without building a custom integration service.
Use either capability on its own. Combine them when your applications need both.
Run Zilla locally with Docker Compose and expose a Kafka topic as a REST API. The example starts Zilla, Kafka, and Kafka UI; no external service credentials are required.
Prerequisite: Docker with Docker Compose.
git clone --depth 1 --branch 2.6.0 https://github.com/aklivity/zilla.git
cd zilla/examples/http.kafka.crud
docker compose up --wait
Produce a record over HTTP, then retrieve it by key:
curl -i -X POST http://localhost:7114/items \
-H 'Idempotency-Key: hello' \
-H 'Content-Type: application/json' \
-d '{"message":"Hello from Zilla"}'
curl http://localhost:7114/items/hello
Zilla maps the request to Kafka without an application service in between. Inspect the topic in [Kafka UI](http://localhost:8080/ui/clusters/loca
No good first issue or help wanted issues are currently available.
[![Build Status][build-status-image]][build-status] [![Slack Community][community-image]][community-join]
:+1::tada: First of all, thank you for taking the time to contribute to Zilla! :tada::+1:
./mvnw clean install locally to verify a successful build and confirm that the GitHub Actions automated PR build completes successfully../mvnw clean install
The build runs Checkstyle, compiles all modules, and executes the full test suite including k3po integration tests. A full build takes several minutes. To build without running tests:
./mvnw clean install -DskipTests
The repository is split into two parallel module trees under runtime/ and specs/:
runtime/<module> β implementation code for each protocol binding, catalog, guard, vault, exporter, and the core engine.specs/<module>.spec β k3po network script tests and helper functions for the corresponding runtime module. Spec modules are published as test-scoped artifacts so integration tests in runtime/ can depend on them.Every runtime module that handles protocol interactions has a matching spec module. This is a hard convention: new protocol functionality needs corresponding spec coverage.
Other top-level directories:
build/ β the flyweight-maven-plugin, which generates Agrona flyweight boilerplate from descriptor files.incubator/ β experimental features not yet part of the stable API surface.cloud/ β Helm chart and Docker image packaging, isolated from runtime concerns.Understanding the threading model is essential to reading the protocol binding code without misinterpreting its structure.
Zilla runs one I/O thread per CPU core. Each thread owns its resources exclusively β there is no shared mutable state between threads during normal operation. This eliminates the need for locks, atomic operations, or thread-safe data structures on the hot path, which is central to Zilla's performance goals.
Factories are instantiated once per thread. A class like HttpServerFactory is not a singleton β each I/O thread creates its own instance. Because each factory instance is confined to a single thread, all instance fields are safe to read and write without synchronization. The factory instance acts as an implicit thread-local context.
Inner classes decompose functionality within a factory. Each inner class inside a factory β a stream handler, a connection state machine, a codec β holds a reference to its enclosing factory instance. This gives every inner class free, unsynchronized access to the shared per-thread state (buffer pools, configuration, counters, codec instances) through the outer class reference, without passing that context explicitly through every method call.
The result is that a factory source file may be large, but it is not a monolith with poor separation of concerns. The inner classes are the decomposition. They are co-located in the same file because co-location is what grants them access to the shared outer-instance scope β separating them into distinct top-level classes would require either making that state static (wrong) or passing it explicitly everywhere (verbose and error-prone).
In practice, when reading a factory class:
In practice, when modifying a factory class:
static state into a factory to work around the per-instance model β this breaks thread isolation.Zilla's primary quality instrument is protocol conformance testing at the integration level, not unit testing of individual classes. This is a deliberate design choice, not an oversight. Understanding the reasoning will help you write tests that provide lasting value.
The core property we want from a tes