serve Command
Start the FastSkill HTTP API server for programmatic access to skills.Usage
Options
| Option | Description | Default |
|---|---|---|
--host <HOST> | Host to bind the server to | localhost |
--port <PORT> | Port to bind the server to | 8080 |
--enable-registry | Enable registry web UI at /registry | false |
--workers <N> | Number of worker threads (not currently used) | 1 |
Examples
Basic Server
Start the server on default port 8080:http://localhost:8080.
Custom Host and Port
Start on a specific host and port:Enable Registry Web UI
Enable the web-based registry interface:- REST API at
/api/*endpoints - Web Registry UI at
/registry - JWT authentication endpoints at
/auth/*
API Endpoints
When the server is running, the following endpoints are available:GET /- Root HTML dashboardGET /api/status- Service statusGET /api/skills- List all skillsGET /api/skills/:id- Get skill detailsPOST /api/skills- Register new skillPUT /api/skills/:id- Update skillDELETE /api/skills/:id- Remove skillPOST /api/search- Search skillsPOST /api/reindex- Reindex skillsPOST /auth/token- Generate JWT token (development)GET /auth/verify- Verify JWT token
Registry Endpoints (with —enable-registry)
GET /api/registry/sources- List configured sourcesGET /api/registry/skills- List all skills from sourcesGET /api/registry/sources/:name/skills- Get skills from specific sourceGET /api/registry/sources/:name/marketplace- Get raw marketplace.jsonGET /registry- Web UI for browsing skills
Authentication
For local development, obtain a JWT token:Production Deployment
For production, configure JWT authentication properly:- Set
FASTSKILL_JWT_SECRETenvironment variable - Disable
/auth/tokenendpoint or secure it - Configure CORS appropriately
- Use reverse proxy (nginx, Traefik) for SSL/TLS