Skip to main content

The AI agent that audits itself. 26 providers, 42 tools, 22 channels, self-improving.

Project description

Seraph

The AI agent that audits itself.

Self-improving, self-auditing, multi-channel AI agent platform. 45 tools, 22 channels, runs everywhere.

Why Seraph?

OpenClaw Hermes Seraph
Self-improving No Yes Yes
Self-auditing No No Yes
Anti-dilution No No Yes
Windows native Clunky No (WSL) Yes
Channels 22 16 22
Tools ~30 48 45
Models ~10 200+ 200+
Memory SQLite SQLite+FTS5 SQLite+FTS5
Skills guard No Regex Regex + trust scoring
Smart routing No Yes Yes + failover + pool
Canvas Electron No Web (any browser)
Companion app Native No PWA (all platforms)

Install

Quick start (pip):

pip install seraph-agent
seraph onboard

From source:

git clone https://github.com/bosskalash/seraph.git
cd seraph
pip install -e ".[all]"
python3 brain/cli.py onboard

Docker:

git clone https://github.com/bosskalash/seraph.git
cd seraph
cp .env.example .env  # edit with your keys
docker compose up -d

Manual:

git clone https://github.com/bosskalash/seraph.git ~/seraph
cd ~/seraph
pip install requests flask pyyaml openai
# Edit .env with your API keys
python3 run.py

Setup

  1. Get an API key from OpenAI or Anthropic
  2. Get a Telegram bot token from @BotFather
  3. Run seraph onboard or edit .env:
SERAPH_PROVIDER=openai
SERAPH_MODEL=gpt-5.4
OPENAI_API_KEY=your-key-here
SERAPH_TELEGRAM_TOKEN=your-bot-token
SERAPH_ALLOWED_USERS=your-telegram-id
  1. Run: python3 run.py
  2. Message your bot on Telegram

45 Built-in Tools

Category Tools
Core terminal, read_file, write_file, list_files, clipboard
Web web_search, web_fetch, browse (headless)
Code run_code (sandbox), apply_patch, audit_file, audit_directory
AI describe_image (vision), mixture_of_agents, delegate_task, verify_claim
Media generate_image (DALL-E), text_to_speech, transcribe, voice_respond
Comms send_email, notify, manage_webhook, send_notification
Data query_sqlite, export_conversation, export_html, search_sessions
DevOps ssh, git, git_clone, import_api (OpenAPI), health_check
Smart Home homeassistant
Workflow todo, checkpoint, clarify, request_approval, interrupt, progress
Skills skills_hub (install/search/sync), fuzzy_find, mcp (Model Context Protocol)
Meta canvas (visual workspace), qr_code, usage_stats

22 Channels

Channel Protocol Status
Telegram Bot API Production
Discord Gateway WS Ready
Slack Socket Mode Ready
WhatsApp Cloud API Ready
Signal signal-cli REST Ready
Matrix Client-Server Ready
Email IMAP + SMTP Ready
SMS Twilio Ready
IRC Raw socket Ready
MS Teams Bot Framework Ready
Google Chat Webhook API Ready
LINE Messaging API Ready
Mattermost REST API Ready
Twitch IRC over SSL Ready
Nostr Relay protocol Ready
DingTalk Robot API Ready
Feishu/Lark Open API Ready
iMessage BlueBubbles Ready
WebChat HTTP server Ready
Canvas Visual workspace Ready
Voice Wake Mic + wake word Ready
PWA Progressive Web App Ready

40+ Slash Commands

/new         Fresh conversation         /improve     Self-improvement cycle
/model       View or change model       /cron        Manage scheduled jobs
/status      System status              /heartbeat   Health monitor
/tools       List available tools       /doctor      Run diagnostics
/exec        Run a shell command        /approve     DM pairing approval
/search      Search the web             /think       Set reasoning level
/read        Read a file                /insights    Conversation analytics
/files       List workspace files       /update      Pull latest from git
/memory      Memory status              /restart     Restart the bot
/remember    Save a fact                /backup      Backup all data
/forget      Remove a fact              /logs        View recent logs
/recall      Search past conversations  /budget      Daily spending limit
/persona     Switch personality         /template    Prompt templates
/raw         Direct LLM (zero overhead) /config      View/change settings
/sandbox     Run Python code            /compress    Smart compress
/branch      Fork conversation          /retry       Retry last response
/undo        Undo last exchange         /send        Send a file
/checkpoint  Save conversation state    /id          Show Telegram ID
/restore     Restore a checkpoint       /help        Show all commands

Architecture

User (Telegram/Discord/Slack/22 channels)
  |
  v
Gateway (Go) -- HTTP proxy, health, routing
  |
  v
Brain (Python) -- LLM reasoning + 45 tools
  |
  v
SQLite -- memory (FTS5), sessions, skills, rules
  |
  v
Canvas / PWA -- visual workspace + mobile app

What Makes Seraph Different

Anti-Dilution Engine

Other platforms waste 30-50% of context on bloated system prompts. Seraph has:

  • Smart tool filtering -- only sends relevant tools per message
  • Prompt compiler -- minifies, deduplicates, strips decorations
  • Context budget -- system overhead capped at 20%
  • Lazy injection -- memory only loaded when conversation needs it
  • /raw mode -- zero injection, direct LLM access

Self-Improvement Loop

The agent improves itself over time:

  • Reviews conversations for user corrections
  • Stores lessons in active memory
  • Auto-generates reusable skills from complex tasks
  • Self-audits its own code for bugs
  • Runs on cron (every 6h) or manual (/improve)

Skills Guard

Every external skill is security-scanned before installation:

  • 30+ threat patterns (exfiltration, injection, destructive, credential theft)
  • Trust scoring (0-100)
  • Install policy by source (builtin/trusted/community)

Canvas

Live visual workspace at http://localhost:18803/canvas. The agent can push HTML, code, tables, charts, and run JavaScript in your browser.

Model Router

  • Smart routing -- simple questions use cheap model, complex use strong
  • Failover chain -- auto-switch when a model is down
  • Credential pool -- rotate API keys with exponential backoff

Configuration

YAML Config (~/.seraph/config.yaml)

model: gpt-5.4
provider: openai
memory:
  enabled: true
skills:
  auto_generate: true
audit:
  enabled: true
  max_rounds: 5

Identity (~/.seraph/SOUL.md)

Customize who your agent is. Injected into every prompt.

MCP Servers (~/.seraph/mcp.json)

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}

Supported Models

  • OpenAI: gpt-5.4, gpt-4.1, gpt-4o, gpt-4o-mini
  • Anthropic: claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5
  • OpenRouter: 200+ models via one API key

Testing

pip install -e ".[dev]"
python -m pytest tests/ -v

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seraph_agent-0.3.0.tar.gz (245.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seraph_agent-0.3.0-py3-none-any.whl (309.8 kB view details)

Uploaded Python 3

File details

Details for the file seraph_agent-0.3.0.tar.gz.

File metadata

  • Download URL: seraph_agent-0.3.0.tar.gz
  • Upload date:
  • Size: 245.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for seraph_agent-0.3.0.tar.gz
Algorithm Hash digest
SHA256 23c3c5f3d00dcb14b10f1aa12ce69b57ba7e1f33f78fa6f260df57c23f5ffc7d
MD5 9422aa10347b2c047e285b28d93794c8
BLAKE2b-256 f734d587bf5e2b7cb7e88d4019b1b4889a8ec315204eee20cbbad68ee79ce745

See more details on using hashes here.

File details

Details for the file seraph_agent-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: seraph_agent-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 309.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for seraph_agent-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d2f3a45d4cb4e0c119b3131ea18aae36700f4e2fd23fc374c7698c8b9839a58
MD5 c1e98bd154a4f61e56b9145df0ff660d
BLAKE2b-256 7690bc48c241bcde9b23dafafbdbda147d165c30826fa89c129725994904e958

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page