Skip to content

Getting Started

Prerequisites

Quick Start

1. Clone and configure

sh
git clone https://github.com/p424p424/agent.git
cd agent

# Set your API key
echo 'DEEPSEEK_API_KEY=sk-...' > .env

2. Run the CLI REPL

sh
gleam run

This starts an interactive chat session. The agent can run bash commands (with approval), fetch web pages, manage memory, and more.

3. Run the daemon (Telegram bot)

sh
# Add your Telegram bot token to .env
echo 'TELEGRAM_BOT_TOKEN=123456:ABC-DEF...' >> .env

gleam run -m agent_app

The daemon starts the Telegram bot and an admin TCP listener on the configured port.

4. Admin CLI

Connect to the running daemon:

sh
gleam run -m agent_admin sessions list
gleam run -m agent_admin db stats

5. Run tests

sh
gleam test

Configuration

Two files control the agent:

FilePurpose
.envSecrets: DEEPSEEK_API_KEY, TELEGRAM_BOT_TOKEN
agent.tomlEverything else: model, timeouts, tool settings, gateways

See the Configuration page for a complete reference.

Next Steps

Built with Gleam on the BEAM/Erlang VM.