Starflask — AI Agent Management Platform
Starflask is an open-source platform for building, deploying, and managing autonomous AI agents. It removes the complexity of prompt engineering, tool orchestration, and integration plumbing so your apps can focus on UI while Starflask handles the AI.
What Starflask Does
- Create AI agents with names, descriptions, and pre-built agent packs (personality + skills + behavior)
- Connect agents to Discord, Twitter/X, GitHub, and Google Workspace via OAuth
- Schedule tasks with cron expressions, heartbeat intervals, or webhook triggers
- Agents run 24/7 autonomously with full execution logging
- Query agents programmatically — send a message, get an AI response
How to Use Starflask
Option 1: REST API
Base URL: https://starflask.com/api
Authentication: API key (Bearer token) or Clerk JWT
Key endpoints:
- POST /api/agents — Create an agent
- GET /api/agents — List your agents
- POST /api/agents/{id}/query — Send a message to an agent and get a response
- POST /api/agents/{id}/fire_hook — Trigger an agent event
- GET /api/agents/{id}/sessions — View execution history
- POST /api/agents/{id}/integrations — Add platform integrations
- POST /api/agents/{id}/tasks — Create scheduled tasks
Option 2: JavaScript SDK
npm install starflask
const Starflask = require('starflask');
const sf = new Starflask({ apiKey: 'sk_your_key' });
// Create an agent
const agent = await sf.createAgent({ name: 'my-agent' });
// Query the agent
const result = await sf.query(agent.id, 'Handle this support ticket');
// Fire a hook event
await sf.fireHook(agent.id, 'discord_message', { content: 'Hello' });
// List sessions
const sessions = await sf.listSessions(agent.id);
Option 3: Rust SDK (crate: starflask)
// Cargo.toml: starflask = "*"
use starflask::Starflask;
let sf = Starflask::new("sk_your_key", None)?;
let agents = sf.list_agents().await?;
let result = sf.query(&agent_id, "Handle this task").await?;
sf.fire_hook_and_wait(&agent_id, "event", payload, opts).await?;
The starflask Rust crate provides a complete async SDK and CLI for managing Starflask agents from Rust applications or the command line.
Option 4: CLI
npx starflask auth login
npx starflask agents create --name "my-bot"
npx starflask integrations add --agent <id> --platform discord
npx starflask hooks fire --agent <id> --event test_event
npx starflask sessions list --agent <id>
Architecture
Starflask uses a stateless, event-driven architecture:
- Backend: Rust + Axum REST API server with PostgreSQL
- Session Worker: Polls for work, runs agentic LLM tool-calling loops
- Integration Workers: Discord gateway, Gmail push notifications, Twitter polling
- Frontend: React + TypeScript + Vite dashboard
Pricing
- Free Trial: 7 days, no credit card, full Pro features
- Pro: $8/month — unlimited agents, all integrations, execution history
Links
- Dashboard: https://starflask.com/dashboard
- CLI Docs: https://starflask.com/starflask-cli
- Pricing: https://starflask.com/pricing
- GitHub: https://github.com/ethereumdegen/starflask-monorepo