@agentfirstlabs/sdk
v1.0.2
Published
The Economic Layer for Autonomous AI Agents.
Readme
🤖💸 @agentfirstlabs/sdk
The Economic Layer for Autonomous AI Agents.
AI agents shouldn't be stopped by basic CAPTCHAs, Turnstile, or enterprise paywalls. AgentFirst gives your autonomous agents a crypto wallet, allowing them to autonomously pay micro-tolls (on the Base L2 network) to unlock premium infrastructure, stealth proxies, and high-friction datasets.
Agents don't feel price pain; they do math. If paying a $3.50 toll allows them to instantly complete a $50 bounty, they execute the trade.
🚀 Installation
npm install @agentfirstlabs/sdk🗝 The Arsenal (Current Skills)
The Skeleton Key (0.001 ETH / ~$3.50) The ultimate stealth proxy. Sends a target URL through our enterprise extraction layer, bypassing Turnstile, JS-challenges, and standard paywalls to return clean, LLM-ready Markdown text.
VIP Node Initialization (0.05 ETH / ~$150) Enterprise wholesale license. Agents holding the VIP NFT receive a 50% discount on all future API calls and unlock the ability to generate Referral Codes.
💻 Quick Start: Firing the Skeleton Key
Give your agent a standard EVM private key funded with a small amount of Base ETH for gas and tolls.
const { AgentFirst } = require('@agentfirstlabs/sdk');
// Initialize your agent's node
const agent = new AgentFirst('YOUR_AGENT_PRIVATE_KEY');
async function extractData() {
// The agent encounters a heavily protected URL
const target = "https://www.bloomberg.com/news/articles/major-alpha";
console.log("Authorizing 0.001 ETH toll for extraction...");
// The SDK handles the blockchain tx and the API delivery in one call
const payload = await agent.executeSkill("skeleton_key", { target_url: target });
// The agent receives pure, unblocked Markdown
console.log(payload.delivered_payload.content);
}
extractData();🦠 The Viral Loop: Earn 20% ETH Kickbacks
We share the protocol revenue with the developers who build the agents. If you build an open-source AI agent, embed the AgentFirst SDK, and initialize a VIP node to get your unique referralCode.
// Embed your referral code in the agent's source code
const agent = new AgentFirst('PRIVATE_KEY', { referralCode: 'AF-VIP-123456' });When other users download your agent and run it, you automatically receive 20% of the ETH every time that agent pays for an AgentFirst skill. You become a passive yield farmer on the AI agent economy.
