Skip to main content

Quick Start Guide

This guide will help you set up ARKOS and create your first intelligent agent with persistent memory.

Prerequisites

Before you begin, ensure you have:
  • Python 3.8 or higher
  • Git
  • PostgreSQL database (Supabase recommended)
  • 8GB+ RAM recommended
  • GPU optional but recommended for local models

Installation

1. Clone the Repository

2. Install Dependencies

3. Configure Your Environment

Create a .env file in the project root:
Edit .env with your configuration:
The DB_URL environment variable is required. ARKOS uses PostgreSQL for storing conversation context and Supabase for vector memory.

Starting the Inference Engine

Check if LLM Server is Already Running

Since ARKOS is often deployed on shared servers, check if the LLM server is already running:
If you see output, the LLM server is already running - you can skip starting it.

Starting the LLM Server (if not running)

The project uses SGLang to run the Qwen 2.5-7B-Instruct model:
This starts the SGLang server on port 30000 using Docker and GPU. Wait for “server started” messages.

Starting the Embedding Server (if not running)

The project uses Huggingface-TEI to run the Qwen 2 1.5B-Instruct model
This starts the SGLang server on port 4444 using Docker and GPU. Wait for “server started” messages.

Running Your First Agent

1. Start the API Server

This starts the FastAPI server on port 1111, providing the /v1/chat/completions endpoint.

2. Run the Test Interface

In another terminal:
This provides an interactive CLI to test the agent. Type your messages and press Enter. Type exit or quit to stop.

Basic Usage Examples

Using the OpenAI-Compatible API

Streaming Responses

Using Memory Directly

Configuration Files

Main Configuration (config_module/config.yaml)

State Graph Configuration (state_module/state_graph.yaml)

Testing Your Setup

Health Check

Expected response:

Test Chat Completion

Common Issues and Solutions

Ensure your DB_URL is correctly set in .env:
Make sure the conversation_context table exists in your database.
Check if the SGLang server is running on port 30000:
If not running, start it with bash model_module/run.sh
Ensure PyTorch is installed with CUDA support:
Find and kill the process using the port:

Next Steps

Architecture Overview

Understand the system architecture

Module Documentation

Deep dive into each module

Development Setup

Set up your development environment

API Reference

Explore the API endpoints

Getting Help