Copy a template, paste in your API key, change 1–2 lines, run it. No experience needed.
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 →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/signupconst 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 priceconst 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 conditionconst hit = CONDITION === 'below' ? price < THRESHOLD : price > THRESHOLD;if (hit) {const msg = '🎯 ALERT: ' + name + ' is ' + CONDITION + ' $' + THRESHOLD +' — current price: $' + price.toFixed(2);// Save the alertawait 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();
These templates are a starting point. AgentOS can do a lot more — combine any of the primitives to build exactly what you need.