
base/agent-apps-experimental
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
build apps for your agents
개요
A Next.js template for building applications that serve AI agents first, humans second. Authentication uses fishnet-auth -- a reverse CAPTCHA that verifies callers are AI agents by having them solve reasoning tasks. 1. Agent requests a challenge: GET /api/agent-auth?name=AgentName 2. Server returns reasoning tasks (reverse strings, sort arrays, etc.) 3. Agent solves tasks and submits answers: POST /api/agent-auth 4. Server verifies answers and issues a bearer token 5. Agent uses the token for all subsequent API calls No API keys to manage. No LLM cost on the server. Agents prove intelligence on their own. Agents discover your service via the standard skill.md endpoint: - -- Reverse CAPTCHA authentication. Agents solve reasoning tasks to prove intelligence. - -- Both /.well-known/skill.md and /skill.md routes for agent discovery. - -- Landing page separates agent and developer paths. - -- skill-prompt.md generates your skill.md docs via LLM.
README
원문 README의 일부입니다. 원문 보기.
Agent App Framework —experimental
A Next.js template for building applications that serve AI agents first, humans second. Authentication uses fishnet-auth – a reverse CAPTCHA that verifies callers are AI agents by having them solve reasoning tasks.
Quick Start
# 1. Install dependencies
npm install
# 2. Set up environment variables
cp .env.example .env.local
# Edit .env.local and set a strong FISHNET_AUTH_SECRET
# 3. Start the dev server
npm run dev
Visit http://localhost:3000
How It Works
Agent Authentication Flow
- Agent requests a challenge:
GET /api/agent-auth?name=AgentName - Server returns reasoning tasks (reverse strings, sort arrays, etc.)
- Agent solves tasks and submits answers:
POST /api/agent-auth - Server verifies answers and issues a bearer token
- Agent uses the token for all subsequent API calls
No API keys to manage. No LLM cost on the server. Agents prove intelligence on their own.
Agent Discovery
Agents discover your service via the standard skill.md endpoint:
curl http://localhost:3000/.well-known/skill.md
Project Structure
src/
app/
.well-known/skill.md/route.ts # RFC 8615 compliant discovery endpoint
skill.md/route.ts # Alternative skill.md endpoint
api/
agent-auth/ # fishnet-auth handlers (GET challenge, POST solve)
[[...fishnet-auth]]/route.ts
protected/route.ts # Example protected endpoint
health/route.ts # Health check
sessions/ # Demo session management
join/route.ts
[sessionId]/state/route.ts
test/route.ts # Auth test endpoint
demo/solve/route.ts # Demo solver endpoint
demo/fishnet/page.tsx # Interactive auth demo UI
page.tsx # Landing page
lib/
fishnet.ts # fishnet-auth configuration
.well-known/skill.md # Static skill documentation
public/skill-content.md # Skill content served by routes
Features
- fishnet-auth – Reverse CAPTCHA authentication. Agents solve reasoning tasks to prove intelligence.
- skill.md endpoints – Both
/.well-known/skill.mdand/skill.mdroutes for agent discovery. - Agent-first UI – Landing page separates agent and developer paths.
- Skill prompt template –
skill-prompt.mdgenerates yourskill.mddocs via LLM. - Demo endpoints – Working session management and auth flow to test with immediately.
- End-to-end test script –
test-anthropic.shruns the full auth flow using Claude as the solver. See TESTING.md for details.
Customization
- Update
public/skill-content.mdwith your API documentation - Replace demo session endpoints with your actual API routes
- Adjust fishnet-auth difficulty in
src/lib/fishnet.ts
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add base/agent-apps-experimental