Every agent team rebuilds the same boilerplate. AgentOS ships it once.
// Before AgentOS
const redis = new Redis(process.env.REDIS_URL);
const supabase = createClient(url, key);
const { exec } = require('child_process');
// Set up auth, rate limiting, sandboxing...
// Handle errors, timeouts, quotas...
// Write 500+ lines of infra code
// before a single line of agent logic.// With AgentOS
const os = new AgentOS({ apiKey: process.env.AGENT_OS_KEY });
await os.mem.set('key', value);
await os.db.insert('table', row);
await os.proc.execute(code, 'python');
// Auth, isolation, quotas — included.Everything an agent needs to read, write, compute, and communicate.
Redis-backed key-value store with TTL, namespaced per agent.
Cloud file storage backed by Supabase. Each agent gets isolated storage.
PostgreSQL with per-agent schema isolation. Queries, transactions, DDL.
Outbound HTTP with SSRF protection, domain allowlisting, rate limiting.
Sandboxed code execution: Python, JavaScript, Bash. Timeouts & quotas.
Redis pub/sub messaging. Publish, subscribe, coordinate across agents.
A trading agent that monitors BTC and broadcasts buy signals.
import { AgentOS } from '@agentos/sdk';
const os = new AgentOS({
apiUrl: 'https://agentos-app.vercel.app',
apiKey: process.env.AGENT_OS_KEY
});
// Monitor Bitcoin price
const price = await os.net.http_get(
'https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT'
);
// Cache for 60 seconds
await os.mem.set('btc_price', price.data.price, 60);
// Store in database
await os.db.insert('prices', {
symbol: 'BTC',
price: parseFloat(price.data.price),
timestamp: Date.now()
});
// Run analysis
const signal = await os.proc.execute(`
import numpy as np
prices = ${JSON.stringify(priceHistory)}
rsi = calculate_rsi(prices)
print('BUY' if rsi < 30 else 'HOLD')
`, 'python');
// Publish event
if (signal.output === 'BUY') {
await os.events.publish('trading.signals', {
symbol: 'BTC',
action: 'BUY',
price: price.data.price
});
}
// Save report
await os.fs.write('report.json', JSON.stringify(signal));Agents that run autonomously in production.
net → mem → db → proc → events
Fetch prices, cache data, store history, run signals, broadcast.
net → db → mem → fs
Crawl pages, store results, cache context, export reports.
db → mem → net → events
History in db, context in mem, APIs via net, workflows via events.
net → fs → proc → db → events
Download, write, transform, load, notify downstream.
Community-built capabilities. Install only what you need.
Publish to the marketplace and earn from every API call your skill handles.