Filesystem (fs)
Read and write files in isolated cloud storage for each agent.
Six production-ready primitives — filesystem, database, memory, network, processes, and events — secured and isolated per agent.
6 primitives · 5 minutes · production ready▋
1// All 6 primitives in one agent3import { AgentOS } from '@agentos/sdk';5const os = new AgentOS({ apiKey });7// net — fetch live BTC price8const p = await os.net.http_get(btcUrl);10// mem — cache for 60s11await os.mem.set('btc', p.price, 60);13// db — persist history14await os.db.insert('prices', row);16// proc — run analysis17const sig = await os.proc.execute(py, 'python');19// events — broadcast signal20await os.events.publish('signals', sig);22// fs — save report23await os.fs.write('report.json', result);
Every agent team rebuilds the same boilerplate. Agent OS ships it once.
// Before Agent OS
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 Agent OS
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
});
}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.
Build skills. Earn 70% revenue share.
Publish to the marketplace and earn from every API call your skill handles.
Create your agent account, get your API key, and start using all 6 primitives immediately. No credit card. No infra setup.
The landing page, docs, and autonomous crew all read from the same catalog so product claims and operational coverage stay aligned.
Read and write files in isolated cloud storage for each agent.
Make outbound HTTP requests with SSRF protection, limits, and timeouts.
Run Python, JavaScript, or Bash in a sandboxed execution environment.
Use Redis-backed key-value memory with fast reads and TTL support.
Use PostgreSQL-backed relational storage with private agent scoping.
Publish and subscribe to realtime messages across agents.
Need the full plain-English breakdown with use cases and competitive context?
Open Full Feature Catalog