Skip to content

Repository files navigation

Alfred - 24/7 AI Agent Server

Alfred is a lightweight AI agent that runs as a 24/7 server, providing automation, notifications, and task management through multiple interfaces.

Features

  • Multi-provider LLM support: OpenAI, Anthropic, Google, DeepSeek
  • Built-in tools: Webhook, Shell command, Todo management
  • Multiple interfaces: REST API, Telegram connector, Terminal UI (TUI)
  • Scheduled tasks: Cron-based automation
  • Persistent storage: SQLite database for conversations, todos, and memories

Quick Start

Linux/Mac

curl -fsSL https://raw.githubusercontent.com/ataidecarlos/alfred/main/scripts/install.sh | sh

Windows (PowerShell)

iwr -useb https://raw.githubusercontent.com/ataidecarlos/alfred/main/scripts/install.ps1 | iex

Manual Installation

Download the latest release from GitHub Releases, extract, and follow the instructions in INSTALL.md.

Configuration

After installation, edit your config file:

  • Linux/Mac: ~/.config/alfred/config.toml
  • Windows: %APPDATA%\alfred\config.toml

Add your API keys:

[llm]
default_provider = "openai"

[llm.providers.openai]
api_key = "your-api-key-here"
model = "gpt-4o"

Usage

Start the server

alfred

Start the TUI

alfred --tui

Update

Linux/Mac:

~/.local/bin/alfred/scripts/update.sh

Windows (PowerShell):

& "$env:LOCALAPPDATA\bin\scripts\update.ps1"

API Endpoints

Method Endpoint Description
GET /health Health check
GET /api/info Server info
POST /api/messages Send message to agent
GET /api/todos List all todos
POST /api/todos Create a todo
DELETE /api/todos/{id} Delete a todo

Documentation

Supported Providers

Provider Model Example Base URL
OpenAI gpt-4o https://api.openai.com/v1
Anthropic claude-sonnet-4-20250514 https://api.anthropic.com
Google gemini-2.0-flash https://generativelanguage.googleapis.com
DeepSeek deepseek-v4-flash https://api.deepseek.com

Development

Build from source

git clone https://github.com/ataidecarlos/alfred.git
cd alfred
cargo build --release

Run tests

cargo test

License

MIT

About

24x7 AI agent server with Telegram, TUI, and automation tools

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages