> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openliate.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# LAPI HTTP Protocol Server

> High-performance Agent-as-an-API HTTP execution server powered by Hono

## Overview

The **Liate Agent Protocol Interface (LAPI)** server (`src/server/engine.ts`) is a high-performance HTTP engine powered by [Hono](https://hono.dev). It exposes autonomous agent classes as production-ready microservices with CORS enabled out-of-the-box.

***

## Starting the Server

```bash theme={"dark"}
liate serve --port 8080
```

```
===========================================================
  LIATE LAPI SERVER — HIGH PERFORMANCE AGENT ENGINE
  Listening on: http://localhost:8080
===========================================================
```

***

## Key Features

* **CORS by Default:** Frontend applications (Next.js, React, React Native) can invoke agents directly.
* **Dynamic API Key Injection:** Pass API keys on the fly via headers (`x-sarvam-api-key`) or request body (`keys.SARVAM_API_KEY`).
* **Monotonic Session Retention:** Automatic RFC 9562 UUIDv7 session generation across multi-turn runs.
* **On-the-Fly ReAct Execution:** Runs the autonomous loop and returns step-by-step reasoning traces and tool outputs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.