API Reference
Agent Skill Hub provides a REST API for programmatic access to skills and skillsets.
Overview
- Base URL:
https://agentskillhub.dev/api/v1/ - Authentication: Bearer token (for authenticated endpoints)
- Content-Type:
application/json
Authentication
Obtaining a Token
Use the CLI to authenticate:
This stores a token in ~/.skhub/auth.json.
Using Tokens
Include the token in the Authorization header:
Public Endpoints
These endpoints don't require authentication.
Get Skill
Retrieve skill metadata and manifest.
Parameters:
slug— Skill identifier (URL-encoded if containing/)
Response:
Get Skill Version
Retrieve a specific skill version.
Parameters:
slug— Skill identifierversion— Version string (e.g.,1.2.0)
Get Skillset
Retrieve a skillset and its items.
Parameters:
username— Skillset owner's usernameslug— Skillset slug
Response:
Analyze Repository
Analyze a GitHub repository for importable skills.
Request Body:
Response:
Import Repository
Import selected skills from a GitHub repository.
Request Body:
Import Stream
Stream import progress as NDJSON (Newline Delimited JSON).
Authenticated Endpoints
These endpoints require a valid API token.
Get Current User
Retrieve current user and token metadata.
Response:
Create CLI Session
Create a new CLI authentication session.
Request Body:
Get Session Status
Poll for session approval status.
Claim Session
Exchange an approved session for an API token.
Response:
Logout
Revoke the current API token.
Record Install
Record a skill or skillset installation event.
Request Body:
MCP Endpoint
The platform exposes a Model Context Protocol endpoint:
This endpoint follows the MCP specification for agent integration.
Error Responses
400 Bad Request
401 Unauthorized
404 Not Found
429 Too Many Requests
Rate Limits
- Public endpoints: 100 requests per minute per IP
- Authenticated endpoints: 1000 requests per minute per token
SDKs and Tools
Official CLI
The skhub CLI uses this API internally:
See the CLI Reference for details.
Custom Integration
Use any HTTP client:
Changelog
v1 (Current)
- Initial API release
- Skills and skillsets endpoints
- CLI authentication flow
- Repository import endpoints

