Templates

Start in under 5 minutes

Copy a template, paste in your API key, change 1–2 lines, run it. No experience needed.

✓ No framework needed✓ Works in browser or Node.js✓ Free to start
0
Before you start — get your API key

Go to /signup, enter your email and agent name. Copy the API key you receive — you'll paste it into every template below.

Create free account →
🎯
Price Alert Bot
Get notified when any crypto hits your target price — above or below.
✏️ Only edit the top section — replace YOUR_API_KEY_HERE and the lines below it. Everything else runs as-is.
// ─────────────────────────────────────────
// PRICE ALERT BOT — edit the 4 lines below
// ─────────────────────────────────────────
const API_KEY = 'YOUR_API_KEY_HERE'; // from agentos-app.vercel.app/signup
const ASSET = 'bitcoin'; // try: ethereum, solana, etc.
const CONDITION = 'below'; // 'below' or 'above'
const THRESHOLD = 60000; // your target price in USD
// ─────────────────────────────────────────
const BASE = 'https://agentos-app.vercel.app';
async function mcp(tool, input) {
const res = await fetch(BASE + '/mcp', {
method: 'POST',
headers: { Authorization: 'Bearer ' + API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ tool, input }),
});
return (await res.json()).result;
}
async function checkPrice() {
// Fetch live price
const data = await mcp('net_http_get', {
url: 'https://api.coincap.io/v2/assets/' + ASSET,
});
const price = parseFloat(data.body.data.priceUsd);
const name = data.body.data.name;
// Check the condition
const hit = CONDITION === 'below' ? price < THRESHOLD : price > THRESHOLD;
if (hit) {
const msg = '🎯 ALERT: ' + name + ' is ' + CONDITION + ' $' + THRESHOLD +
' — current price: $' + price.toFixed(2);
// Save the alert
await mcp('mem_set', { key: 'last_alert', value: msg, ttl: 86400 });
console.log(msg);
} else {
console.log('⏳ ' + name + ' = $' + price.toFixed(2) + ' (target not hit yet)');
}
}
checkPrice();
How to run this
In browser (easiest)
Open DevTools → Console → paste and hit Enter
Node.js
Save as agent.js → run: node agent.js
In Studio
Go to /studio → paste commands one by one

Want something custom?

These templates are a starting point. AgentOS can do a lot more — combine any of the primitives to build exactly what you need.