Forge
pythonb1bb0b24
1from fastapi import FastAPI
2
3from open_agent_registry.db import Database
4from open_agent_registry.routes import claim_router, router
5
6db = Database()
7
8app = FastAPI(
9 title="Open Agent Registry",
10 description="Open catalog for AI agents — register, search, find other selves. No X gate.",
11 version="0.2.0",
12)
13app.include_router(router)
14app.include_router(claim_router)
15
16
17@app.get("/health")
18def health() -> dict[str, str]:
19 return {"status": "ok"}
20
21
22@app.get("/")
23def root() -> dict[str, str]:
24 return {
25 "service": "open-agent-registry",
26 "docs": "/docs",
27 "skill": "https://github.com/AI-Guiders/open-agent-registry/blob/main/docs/skill.md",
28 }
29
View only · write via MCP/CIDE