TP

talhamahmood666/paperclip-adapter-openrouter

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 质量 62 趋势 10MIT

OpenRouter Paperclip适配器 - 通过单一 API 密钥支持300+ AI模型(免费和付费)

概览

——为每个代理提供真正的工具调用循环,访问300+模型(免费和付费),并通过单一API密钥实现完整的Paperclip-API集成。 只要能接收到心跳,它就会被录用。现在它可以用任何模型思考——并且真正行动起来。 通过适配器内置完整的代理运行时,将回形针代理连接到OpenRouter——没有CLI子进程,没有封装器,也没有缺失的功能。 - — 模型调用工具,适配器执行,结果反馈,循环直到模型完成或达到最大转折 - — 8个工具连接到Paperclip的REST API,使代理可以阅读问题、发布评论、更新状态、创建子问题、雇佣团队成员和请求审批 - — 问题在工作开始时移至in_progress,完成时被阻塞 - — 每次运行都会在问题上留下评论,方便其他代理和人类看到结果 - 自动检测Paperclip的心跳已预锁问题并跳过冗余的API调用 - - 降低技能。

概述(AI 翻译)

Paperclip 的 OpenRouter 适配器 — 为每个代理提供真正的工具调用循环,访问 300+ 型号(免费和付费),并通过单一 API 密钥实现完整的 Paperclip-API 集成。

如果它能接收到心跳,它就被录用了。现在它可以用任何模型来思考——并且真的做事情。


这会带来什么

通过适配器内置完整的代理运行时,将回形针代理连接到OpenRouter——没有CLI子进程,没有封装器,也没有缺失的功能。

代理能力

  • 多工次工具调用循环 — 模型调用工具,适配器执行,结果反馈,循环持续直到模型完成或maxTurns被触发
  • 内置回形针API工具 — 8个连接回形针REST API的工具,使客服可以阅读问题、发布评论、更新状态、创建子问题、招聘团队成员并请求审批
  • 自动发行状态管理 — 工作开始时问题移至 in_progress,完成时移至 done / blocked
  • 最终输出作为评论发布 — 每次运行都会对问题留下评论,以便其他代理和人类查看结果

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

@paperclipai/adapter-openrouter

OpenRouter adapter for Paperclip — give every agent a real tool-calling loop, access to 300+ models (free & paid), and full Paperclip-API integration through a single API key.

If it can receive a heartbeat, it’s hired. Now it can think with any model — and actually do things.


What This Does

Connects Paperclip agents to OpenRouter with a complete agent runtime built directly into the adapter — no CLI subprocess, no wrapper, no missing capabilities.

Agent capabilities

  • Multi-turn tool-calling loop — model calls tools, adapter executes them, results feed back, loop continues until the model is done or maxTurns is hit
  • Built-in Paperclip API tools — 8 tools wired to Paperclip’s REST API so agents can read issues, post comments, update status, create sub-issues, hire teammates, and request approvals
  • Auto issue state management — issues move to in_progress when work starts and done / blocked when it finishes
  • Final output posted as a comment — every run leaves a comment on the issue so other agents and humans can see the result
  • Smart issue checkout — automatically detects when Paperclip’s heartbeat already pre-locked the issue and skips redundant API calls
  • Skill loading — drops SKILL.md files into the agent’s system prompt at runtime
  • Reasoning support — DeepSeek R1, QwQ, and other thinking models emit thinking transcript entries separately from the final answer
  • Approval gating — hire_agent and other mutating tools route through Paperclip’s approval system by default (override with autoApprove: true)
  • Repeat-call loop break — detects when a model gets stuck calling the same tool with the same args and breaks the loop with a clear error

Model access

  • 300+ models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, Qwen, and more
  • 50+ free models — Llama 4 Maverick, Gemma 3, DeepSeek V3, Qwen3 235B, gpt-oss-120b, etc.
  • Auto-routing — let OpenRouter pick the cheapest/fastest model per request
  • Fallback routing — automatic provider failover on 5xx errors
  • Cost tracking — real USD cost per generation, fed into Paperclip’s budget system
  • Dynamic model discovery — fetches the model list live from OpenRouter

Verified Working

This adapter has been tested end-to-end against a real running Paperclip instance with a real CEO agent on the PanicButton company. Every tool in the suite has been exercised in production runs:

Run Issue Tools fired Outcome
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add talhamahmood666/paperclip-adapter-openrouter
新手?先看 mcpskill.org 教程 →