npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@inneranimalmedia/agentsam-sdk

v1.7.0

Published

Agent Sam is a full-stack AI agent SDK for autonomous task execution — covering data management, creative workflows, design commands, and multi-step agentic pipelines.

Downloads

1,418

Readme

Agent Sam SDK

The AI agent layer for developers who need more than a chatbot.

Agent Sam is a full-stack autonomous agent SDK built on Cloudflare Workers, D1, Supabase, Durable Objects, and MCP — designed to converse, plan, and execute real work across your entire stack. CMS websites, full-stack applications, data pipelines, creative workflows, terminal execution, deployments, and multi-step agentic pipelines — all through one unified agent interface.

Repo: github.com/SamPrimeaux/agentsam-sdk · npm: @inneranimalmedia/agentsam-sdk


What is Agent Sam?

Agent Sam is a platform operator AI. It sits on top of your infrastructure and can:

  • Understand intent — natural language in, real actions out
  • Execute across surfaces — terminal, database, browser, CAD, deploy, MCP tools
  • Route intelligently — local machine, cloud VM, or sandboxed environment based on context
  • Gate high-risk actions — approval flows before anything destructive runs
  • Leave an audit trail — every tool call, command run, and decision is logged

It is not a wrapper around a chat API. It is a command fabric with a conversation interface.


Quickstart (local-first — Node only)

npx @inneranimalmedia/agentsam-sdk init

Default path: localhost. No IAM login, no Cloudflare OAuth, no accounts. Under 2 minutes with Node 20+ installed.

cd my-project
npm install
npm run smoke
npx agentsam start-local   # local PTY on ws://127.0.0.1:3099
npx agentsam tunnel        # cloudflared → register with IAM (dashboard Local lane)
npm run dev                # http://127.0.0.1:8787
npm run db:migrate         # local D1 schema

agentsam tunnel (default --quick) starts a Cloudflare quick tunnel to :3099 and POSTs the wss:// URL to /api/sdk/terminal/register-local so agentsam_terminal_local can reach your machine. Use --named --tunnel-name … --hostname … --zone-id … for a stable BYOK named tunnel. When you're ready to ship to your Cloudflare account:

npx agentsam deploy

Cloudflare OAuth is prompted only at deploy — not at init.

Non-interactive init:

npx @inneranimalmedia/agentsam-sdk init \
  --name my-agent \
  --lane fullstack \
  --run-target local \
  --yes

Run targets at init: local (default) · cloudflare · gcp — all scaffold locally first; cloud credentials come at deploy.

See DEVELOPMENT.md for linking the SDK into Inner Animal Media locally.


CLI Shell Experience (Gorilla)

The SDK ships a game-feel terminal UX alongside the scaffold CLI — consolidated from the Gorilla Mode experiment:

npx @inneranimalmedia/agentsam-sdk shell

| Piece | Location | |-------|----------| | Slash command registry | src/lib/slash-commands.js | | Phase 0 visual prototype | examples/gorilla-shell/ | | Architecture + phases | docs/CLI_SHELL.md |

Run the prototype:

cd examples/gorilla-shell && npm install && npm run dev

Installation

npm install @inneranimalmedia/agentsam-sdk

Lanes

| Lane | Best For | |------|----------| | Full Stack | End-to-end apps — agent chat, terminal, deploy, D1, R2, Durable Objects, KV | | CMS | Content-managed websites — pages, assets, themes, navigation, live edit | | Data Solutions | Database ops, migrations, queries, Supabase pgvector, Hyperdrive pipelines | | Customer Management | CRM, contacts, billing, client workflows, multi-tenant isolation | | Creative & Design | CAD, 3D, media generation, content pipelines |


Agents

| Agent | Role | |-------|------| | Orchestrator | General purpose — routes across all lanes and tools | | CMS Agent | Pages, sections, assets, themes, publishing workflows | | Data Agent | D1, Supabase, Hyperdrive, migrations, vector search | | CRM Agent | Customer records, contacts, billing, client isolation | | Creative Agent | Design commands, 3D generation, CAD, media pipelines |


How It Works

User Intent (chat or CLI)
        ↓
   Agent Sam — intent classification + command match
        ↓
   Tool Catalog (D1) — policy check + approval gate
        ↓
   Execution — terminal / D1 / Supabase / R2 / KV / DO / browser / deploy / MCP
        ↓
   Telemetry — every action logged, measured, improvable

Capabilities are data-driven — new tools are added via D1, not Worker redeployments. The same tool catalog powers the dashboard, the CLI, and any MCP-connected client like Cursor or Claude Desktop.


Infrastructure

Agent Sam scaffolds and operates across the full Cloudflare + Supabase stack:

| Layer | Technology | Role | |-------|------------|------| | Compute | Cloudflare Workers | Edge runtime, API, agent dispatch | | Relational DB | D1 (SQLite) | Tool catalog, sessions, telemetry, CMS, auth | | Vector DB | Supabase pgvector via Hyperdrive | RAG, semantic search, agent memory | | Object Storage | R2 | Assets, media, bundles, CMS content | | Key-Value | Workers KV | Cache, CMS drafts, feature flags | | Stateful Sessions | Durable Objects | Terminal sessions, collab, real-time state | | Terminal | ExecOS over cloudflared tunnel | Shell execution, deploy, git, wrangler | | AI Router | Anthropic + OpenAI | Adaptive Thompson sampling across models | | Protocol | MCP (Model Context Protocol) | External agent surface for Cursor, Claude, etc. |


Execution Lanes

Agent Sam routes work to the right environment automatically:

| Lane | Environment | When | |------|-------------|------| | Local | Your machine | Fastest dev loop | | Cloud | Always-on VM via tunnel | Machine asleep or offsite | | Sandbox | Isolated workspace | Safe experiments, tenant isolation |


What Gets Scaffolded

Running agentsam init generates a production-ready project for your lane:

All lanes include:

  • agentsam.config.js — project config, lane, provider, agent
  • wrangler.toml — Worker, D1, R2, KV, Durable Object bindings
  • .env.example — all required secrets pre-listed
  • src/index.js — Worker entry point wired to your agent
  • README.md — setup and deploy instructions

CMS lane adds: page/section/asset schema migrations and CMS worker scaffold.

Data lane adds: D1 + Hyperdrive config and migration templates.

Full Stack adds: Durable Object session scaffold, auth tables, full agent chat loop.


Multi-Tenant & Client Policy

  • Each user or client gets a scoped workspace
  • Terminal execution is path-isolated — no cross-tenant access
  • AI usage is policy-gated — BYOK, managed, or disabled per client
  • D1 and R2 are scoped per tenant at the binding level
  • Every action produces an audit trail

Roadmap

  • [x] agentsam shell — shell UX info + slash command registry
  • [x] Gorilla Shell Phase 0 prototype in examples/gorilla-shell/
  • [ ] agentsam deploy — push your project from CLI
  • [ ] agentsam status — live agent and infrastructure health
  • [ ] agentsam logs — tail tool call and command logs
  • [ ] PTY bridge (Phase 1) — ExecOS WebSocket in shell
  • [ ] Kit marketplace — CMS, ecommerce, nonprofit, SaaS starters
  • [ ] BYOK AI key support per project

Built By

Inner Animal Media — Agent Sam is the operator brain behind the platform. The SDK is how we productize that infrastructure for other developers.

Legacy: InnerAnimal/gorilla-mode → consolidated here.


License

MIT