Quickstart
Run autonomous agents locally and launch the Liate API server in under 10 seconds
Prerequisites
OpenLiate is powered by Bun for ultra-fast startup and native TypeScript execution.
# Verify Bun is installed
bun --version1. Installation
powershell -c "irm https://openliate.tech/install.ps1 | iex"curl -fsSL https://openliate.tech/install.sh | bashnpm install -g openliatebun add -g openliatepip install liategit clone https://github.com/OpenLiate/Liate.git
cd Liate
bun install2. Setting Up Your Environment
Create a .env file or export your Sarvam AI key:
export SARVAM_API_KEY="your-sarvam-api-key"Or configure it persistently using the CLI:
liate key set SARVAM_API_KEY="your-sarvam-api-key"3. The agent.json Module
OpenLiate defines agents in a minimal agent.json module following the L · I · A · T · E layers:
{
"L": "sarvam/sarvam-105b",
"I": {
"memory": "sessions/my-agent"
},
"A": {
"name": "my_agent",
"version": "1.0.0",
"intent": "Autonomous assistant for research and identity verification",
"maxSteps": 5
},
"T": [
"mcp:fetch",
"verify_identity"
],
"E": {
"SARVAM_API_KEY": "$SARVAM_API_KEY"
}
}4. Run the Agent Locally
Execute your agent directly using the CLI:
liate run agent.json "Verify PAN ABCDE1234F and check if format is valid"You can also run pre-packaged agents directly from the Liate Hub by name:
liate run identity-agent "Validate Aadhaar 367598345210"
liate run research-agent "Fetch https://openliate.tech and summarize"5. Launch the Liate API HTTP Server
Start the headless Liate API (Agent Protocol Interface) server on port 7071:
liate serve --port 7071Now invoke your agent from any application via HTTP:
curl -X POST http://localhost:7071/run \
-H "Content-Type: application/json" \
-d '{
"input": "Introduce yourself in one sentence and say Namaste"
}'