SDK that automatically converts your pages into AI-optimized, Polish-translated Markdown for LLM agents. Features smart caching, and auto-generation of llms.txt and robots.txt configurations to make your site "agent-ready" instantly.
ai-agent-friendly-sdk is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on ai, ai-agents, ai-sdk, api. It currently has 1 GitHub stars and 0 forks, and sits alongside related tools like ClawRouter, ClawRouter, claw-empire, a2a, x402, x402Nano-API.

A generic SDK for Next.js, Remix, Vue, Svelte, or any web framework developers to generate AI-agent optimized content structure (MD format), translated to Polish (optimized for LLM understanding), from existing pages.
It works by connecting to your local or staging server (HTTP), cleaning the HTML, utilizing Google Gemini 3.0 Pro to enhance the semantics, and saving the results as static Markdown files.
llms.txt and robots.txt snippets.llms.txt, the emerging standard for agent-crawlers to map your site's knowledge.
# Run directly without installing
npx jsr run @kyolt/ai-friendly-sdk init
# Or install to your project
npx jsr add @kyolt/ai-friendly-sdk
Initialize (Creates ai-sdk.config.js):
npx jsr run @kyolt/ai-friendly-sdk init
Configure:
ai-sdk.config.js and set your baseUrl and pages.GEMINI_API_KEY is in your .env file.Build:
npx jsr run @kyolt/ai-friendly-sdk build
Create ai-sdk.config.js in your project root:
module.exports = {
baseUrl: 'http://localhost:3000', // URL of your running app
pages: ['/about', '/docs', '/pricing'],
outputDir: './public/ai',
geminiApiKey: process.env.GEMINI_API_KEY // or set in .env
};
npm run dev in Next.js, Remix, etc).# If installed globally or linked
npx ai-sdk build
# Or via local script
node dist/cli.js build
Check Output:
public/
├── llms.txt # Agent discovery map
├── ai/
│ ├── about.md # Cleaned & Translated content
│ ├── docs.md
│ └── pricing.md
graph TD
CLI[CLI Entry Point] -->|Load| Config[Config Loader]
Config -->|Settings| Main[Main Loop]
subgraph Core Logic
Main -->|URL| Fetcher[Fetcher Module]
Fetcher -->|HTML| Cache{Cache Check}
Cache -->|Hit| Generator[Generator Module]
Cache -->|Miss| Processor[Processor Module]
Processor -->|Clean HTML| Cheerio[Cheerio Parser]
Cheerio -->|Cleaned Text| Gemini[Google Gemini 3.0 Pro]
Gemini -->|Polish Markdown| CacheStore[Update Cache]
CacheStore --> Generator
end
subgraph Output
Generator -->|Save| MD[public/ai/*.md]
Generator -->|Generate| LLMS[public/llms.txt]
Generator -->|Snippet| Robots[Robots.txt Log]
end
gemini-3.0-pro for stability..next/cache/ai-sdk/. Delete this folder to force regeneration.This project is based on research and guidelines for optimizing websites for AI agents:
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
⚡ Route requests to the most cost-effective model with ClawRouter—one wallet, over 30 models, no API keys needed.
Manage AI agent teams locally using CLI, OAuth, and API tools to simulate a virtual company with autonomous workflows.
🌐 Build seamless Agent-to-Agent communication with the A2A framework, offering real-time interactions and cross-platform support in TypeScript.
💸 Simplify payments with x402, an open protocol for fast, fee-free digital dollar transactions. Experience seamless integration and instant settlements.
💳 Streamline your Nano cryptocurrency transactions with our flexible payment gateway API, designed for easy wallet management and transaction handling.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
Daydreams is a set of tools for building agents for commerce
Live data for AI agents — search, research, markets, crypto, X/Twitter. Pay-per-call via x402 micropayments.
DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.