
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@copass/agent-router
Advanced tools
High-level Copass agent SDK — hosted agent-runtime routing + integrations + one-liner OAuth flow
High-level Copass agent SDK. Wraps @copass/core to give you:
router.run({...}) — typed async-iterator over agent events (SSE under the hood)router.integrations.connect('github', ...) — one-call OAuth flow with browser redirect + webhook/reconcile pollingrouter.integrations.{list,disconnect,reconcile,catalog} — convenience wrappersnpm add @copass/agent-router @copass/core
import { AgentRouter } from '@copass/agent-router';
import open from 'open';
const router = new AgentRouter({
auth: { type: 'api-key', key: process.env.COPASS_API_KEY! },
sandboxId: 'sb_...',
});
// 1) Connect an integration (works end-to-end from a terminal)
const { connection } = await router.integrations.connect('github', {
scope: 'user',
onConnectUrl: (url) => open(url),
});
console.log('connected:', connection.app, connection.name);
// 2) Run an agent
for await (const event of router.run({
provider: 'anthropic',
model: 'claude-opus-4-7',
system: 'You are a helpful agent.',
message: 'Summarize my latest GitHub issues.',
endUserId: 'u-123',
})) {
if (event.type === 'text') process.stdout.write(event.text);
if (event.type === 'finish') console.log('\n[done]', event.stop_reason);
}
The OAuth listener in runConnectFlow uses node:http and therefore only runs in Node. In browsers, call router.client.integrations.connect(...) directly and handle the redirect via window.open + BroadcastChannel or polling.
MIT.
FAQs
High-level Copass agent SDK — hosted agent-runtime routing + integrations + one-liner OAuth flow
We found that @copass/agent-router demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.