AI Skill Hub 推荐使用:CLASP 是一款优质的Agent工作流。AI 综合评分 7.3 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
CLASP 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
CLASP 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:go install(推荐) go install github.com/jedarden/CLASP@latest # 方式二:从源码编译 git clone https://github.com/jedarden/CLASP cd CLASP go build -o clasp . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/jedarden/CLASP/releases
# 查看帮助 clasp --help # 基本运行 clasp [options] <input> # 详细使用说明请查阅文档 # https://github.com/jedarden/CLASP
# clasp 配置说明 # 查看配置选项 clasp --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CLASP_CONFIG="/path/to/config.yml"
A high-performance Go proxy that translates Claude/Anthropic API calls to OpenAI-compatible endpoints, enabling Claude Code to work with any LLM provider.
npx clasp-ai installs everythingcache: enabled: true max_size: 1000 ttl: 3600
rate_limit: enabled: false requests: 60 window: 60
npm install -g clasp-ai
```bash
docker run -d -p 8080:8080 \ -e OPENAI_API_KEY=sk-... \ ghcr.io/jedarden/clasp:latest
docker-compose up -d ```
Available Docker tags: - latest - Latest stable release - 0.24 - Latest 0.24.x release - 0.24.8 - Specific version
```bash
make docker
Create a .env file with your configuration:
PROVIDER=openai
OPENAI_API_KEY=sk-...
CLASP_DEFAULT_MODEL=gpt-4o
Then start the service:
docker-compose up -d
All configuration is done through environment variables. See the Environment Variables section above.
make build
make build-all
make docker
CLASP supports three configuration methods, with the following precedence (highest to lowest): 1. Command-line flags - Override all other settings 2. Environment variables - Override config file settings 3. Configuration file - YAML-based configuration 4. Default values - Built-in defaults
CLASP can load configuration from a YAML file, which is cleaner for complex setups and version control friendly.
Configuration file locations (searched in order): 1. ./clasp.yaml or ./clasp.yml - Current directory 2. ~/.clasp/config.yaml - User config directory 3. ~/.config/clasp/config.yaml - XDG config directory 4. /etc/clasp/config.yaml - System-wide config 5. Custom path via CLASP_CONFIG_FILE environment variable
Example configuration file (clasp.yaml):
```yaml
api_keys: openai: ${OPENAI_API_KEY} # azure: ${AZURE_API_KEY} # openrouter: ${OPENROUTER_API_KEY}
endpoints: openai: https://api.openai.com/v1 ollama: http://localhost:11434
models: default: gpt-4o opus: gpt-4o # Maps claude-opus- to gpt-4o sonnet: gpt-4o-mini # Maps claude-sonnet- to gpt-4o-mini haiku: gpt-4o-mini # Maps claude-haiku-* to gpt-4o-mini
server: port: 8080 log_level: info
clasp [options]
Options:
-port <port> Port to listen on (default: 8080)
-provider <name> LLM provider: openai, azure, openrouter, custom
-model <model> Default model to use for all requests
-debug Enable debug logging (full request/response)
-rate-limit Enable rate limiting
-cache Enable response caching
-cache-max-size <n> Maximum cache entries (default: 1000)
-cache-ttl <n> Cache TTL in seconds (default: 3600)
-multi-provider Enable multi-provider tier routing
-fallback Enable fallback routing for auto-failover
-auth Enable API key authentication
-auth-api-key <key> API key for authentication (required with -auth)
-version Show version information
-help Show help message
| Variable | Description | Default |
|---|---|---|
PROVIDER | LLM provider type | openai |
CLASP_PORT | Proxy server port | 8080 |
CLASP_MODEL | Default model | - |
CLASP_MODEL_OPUS | Model for Opus tier | - |
CLASP_MODEL_SONNET | Model for Sonnet tier | - |
CLASP_MODEL_HAIKU | Model for Haiku tier | - |
OPENAI_API_KEY | OpenAI API key | - |
OPENAI_BASE_URL | Custom OpenAI base URL | https://api.openai.com/v1 |
AZURE_API_KEY | Azure OpenAI API key | - |
AZURE_OPENAI_ENDPOINT | Azure endpoint URL | - |
AZURE_DEPLOYMENT_NAME | Azure deployment name | - |
AZURE_API_VERSION | Azure API version | 2024-02-15-preview |
OPENROUTER_API_KEY | OpenRouter API key | - |
CUSTOM_BASE_URL | Custom endpoint base URL | - |
CUSTOM_API_KEY | Custom endpoint API key | - |
CLASP_DEBUG | Enable all debug logging | false |
CLASP_DEBUG_REQUESTS | Log requests only | false |
CLASP_DEBUG_RESPONSES | Log responses only | false |
CLASP_RATE_LIMIT | Enable rate limiting | false |
CLASP_RATE_LIMIT_REQUESTS | Requests per window | 60 |
CLASP_RATE_LIMIT_WINDOW | Window in seconds | 60 |
CLASP_RATE_LIMIT_BURST | Burst allowance | 10 |
CLASP_CACHE | Enable response caching | false |
CLASP_CACHE_MAX_SIZE | Maximum cache entries | 1000 |
CLASP_CACHE_TTL | Cache TTL in seconds | 3600 |
CLASP_MULTI_PROVIDER | Enable multi-provider routing | false |
CLASP_FALLBACK | Enable fallback routing | false |
CLASP_AUTH | Enable API key authentication | false |
CLASP_AUTH_API_KEY | Required API key for access | - |
CLASP_AUTH_ALLOW_ANONYMOUS_HEALTH | Allow /health without auth | true |
CLASP_AUTH_ALLOW_ANONYMOUS_METRICS | Allow /metrics without auth | false |
clasp -cache -cache-max-size 500 -cache-ttl 1800
CLASP_CACHE=true CLASP_CACHE_MAX_SIZE=500 clasp ```
Caching behavior: - Only non-streaming requests are cached - Requests with temperature > 0 are not cached (non-deterministic) - Cache uses LRU (Least Recently Used) eviction when full - Cache entries expire after TTL (time-to-live) - Response headers include X-CLASP-Cache: HIT or X-CLASP-Cache: MISS
CLASP_DEBUG=true clasp
CLASP_AUTH=true CLASP_AUTH_API_KEY="my-secret-key" clasp ```
| Variable | Description | Default |
|---|---|---|
CLASP_AUTH | Enable authentication | false |
CLASP_AUTH_API_KEY | Required API key | - |
CLASP_AUTH_ALLOW_ANONYMOUS_HEALTH | Allow /health without auth | true |
CLASP_AUTH_ALLOW_ANONYMOUS_METRICS | Allow /metrics without auth | false |
clasp -queue -queue-max-size 200 -queue-max-wait 60
CLASP_QUEUE=true CLASP_QUEUE_MAX_SIZE=200 clasp ```
| Variable | Description | Default |
|---|---|---|
CLASP_QUEUE | Enable request queuing | false |
CLASP_QUEUE_MAX_SIZE | Maximum queued requests | 100 |
CLASP_QUEUE_MAX_WAIT | Queue timeout in seconds | 30 |
CLASP_QUEUE_RETRY_DELAY | Retry delay in milliseconds | 1000 |
CLASP_QUEUE_MAX_RETRIES | Maximum retries per request | 3 |
clasp -circuit-breaker -cb-threshold 10 -cb-recovery 3 -cb-timeout 60
CLASP_CIRCUIT_BREAKER=true clasp ```
| Variable | Description | Default |
|---|---|---|
CLASP_CIRCUIT_BREAKER | Enable circuit breaker | false |
CLASP_CIRCUIT_BREAKER_THRESHOLD | Failures before opening circuit | 5 |
CLASP_CIRCUIT_BREAKER_RECOVERY | Successes to close circuit | 2 |
CLASP_CIRCUIT_BREAKER_TIMEOUT | Timeout in seconds before retry | 30 |
For production deployments requiring maximum resilience:
```bash
export OPENAI_API_KEY=sk-...
| Endpoint | Description |
|---|---|
POST /v1/messages | Anthropic Messages API (translated) |
GET /health | Health check |
GET /metrics | Request statistics (JSON) |
GET /metrics/prometheus | Prometheus metrics |
GET / | Server info |
clasp -debug
clasp -auth -auth-api-key "my-secret-key"
Clients can provide the API key in two ways:
```bash
curl http://localhost:8080/v1/messages \ -H "x-api-key: my-secret-key" \ -H "Content-Type: application/json" \ -d '{"model": "claude-3-5-sonnet-20241022", ...}'
| Endpoint | Default Access |
|---|---|
/ | Always accessible |
/health | Anonymous by default |
/metrics | Requires auth by default |
/metrics/prometheus | Requires auth by default |
/v1/messages | Requires auth |
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,CLASP 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | CLASP |
| 原始描述 | 开源AI工作流:Run Claude Code with any LLM provider — drop-in proxy for OpenAI, Gemini, and mo。⭐22 · Go |
| Topics | workflowai-agentsclaudeclaude-codegeminigo |
| GitHub | https://github.com/jedarden/CLASP |
| License | MIT |
| 语言 | Go |
收录时间:2026-05-23 · 更新时间:2026-05-23 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端