Extension source code for AgentOS — tools, channel adapters, integrations, and starter templates.
This package contains the actual implementation source code for AgentOS extensions:
the Telegram adapter, web-search tool, voice providers, browser automation, channel adapters
for 37 platforms, and more. It also ships starter templates (templates/) for creating
new extensions from scratch.
This is NOT a registry. It is the source code that registries catalog. The relationship between the two sibling packages is:
| Package | Role |
|---|---|
@framers/agentos-extensions (this package) |
Implementation source code, manifests, and templates |
@framers/agentos-extensions-registry |
Catalog/SDK that references this package's metadata and exposes createCuratedManifest() |
Dependency direction: agentos-extensions-registry depends on metadata from this package,
not the other way around. Extensions here are self-contained and can be installed individually
without the registry.
All extensions are published to npm under the @framers scope.
| Package | Description | npm |
|---|---|---|
@framers/agentos-ext-web-search |
Multi-provider web search & fact-checking | |
@framers/agentos-ext-web-browser |
Browser automation & content extraction | |
@framers/agentos-ext-web-scraper |
Progressive scraping with fetch, Playwright, stealth, recipes, and LLM fallback extraction | |
@framers/agentos-ext-news-search |
News article search via NewsAPI | |
@framers/agentos-ext-giphy |
GIF & sticker search via Giphy API | |
@framers/agentos-ext-image-search |
Stock photo search (Pexels, Unsplash, Pixabay) | |
@framers/agentos-ext-letterboxd |
Letterboxd movie lookup with review extraction and direct page fallback | |
@framers/agentos-ext-omdb |
Movie and TV metadata with IMDB, Rotten Tomatoes, and Metacritic ratings | |
@framers/agentos-ext-voice-synthesis |
Text-to-speech via ElevenLabs | |
@framers/agentos-ext-cli-executor |
Shell command execution & file management | |
@framers/agentos-ext-auth |
JWT authentication & subscription management | |
@framers/agentos-ext-clearbit |
Company and person enrichment via Clearbit | |
@framers/agentos-ext-telegram |
Telegram Bot API integration | |
@framers/agentos-ext-wunderbot-feeds |
Wunderbot feed ingestion + social content pipeline integration | |
@framers/agentos-ext-telegram-bot |
Telegram bot communications handler | |
@framers/agentos-ext-anchor-providers |
Solana on-chain provenance anchoring | |
@framers/agentos-ext-tip-ingestion |
Tip content processing pipeline (published package; not vendored in this workspace) | |
@framers/agentos-ext-browser-automation |
Full browser automation (Playwright) — 10 tools | |
@framers/agentos-ext-deep-research |
Multi-source research & investigation — 5 tools | |
@framers/agentos-ext-content-extraction |
Content extraction (URLs, YouTube, PDF) — 5 tools | |
@framers/agentos-ext-credential-vault |
Encrypted credential management — 5 tools | |
@framers/agentos-ext-document-export |
Export reports and decks to PDF, DOCX, PPTX, XLSX, and CSV | |
@framers/agentos-ext-widget-generator |
Generate self-contained interactive HTML widgets with file management | |
@framers/agentos-ext-notifications |
Multi-channel notification router — 3 tools |
| Package | Description | npm |
|---|---|---|
@framers/agentos-ext-channel-telegram |
Telegram messaging channel (grammY) | |
@framers/agentos-ext-channel-whatsapp |
WhatsApp messaging channel (Baileys) | |
@framers/agentos-ext-channel-discord |
Discord messaging channel (discord.js) | |
@framers/agentos-ext-channel-slack |
Slack messaging channel (Bolt) | |
@framers/agentos-ext-channel-webchat |
Built-in WebChat channel (Socket.IO) | |
@framers/agentos-ext-channel-twitter |
Twitter/X social channel (twitter-api-v2) | |
@framers/agentos-ext-channel-instagram |
Instagram social channel (Graph API) | |
@framers/agentos-ext-channel-reddit |
Reddit social channel (snoowrap) | |
@framers/agentos-ext-channel-youtube |
YouTube social channel (googleapis) | |
@framers/agentos-ext-channel-linkedin |
LinkedIn social channel (Marketing API) | |
@framers/agentos-ext-channel-facebook |
Facebook social channel (Meta Graph API) | |
@framers/agentos-ext-channel-threads |
Threads social channel (Meta Graph API) | |
@framers/agentos-ext-channel-bluesky |
Bluesky social channel (AT Protocol) | |
@framers/agentos-ext-channel-mastodon |
Mastodon social channel (federated) | |
@framers/agentos-ext-channel-farcaster |
Farcaster social channel (Neynar API) | |
@framers/agentos-ext-channel-lemmy |
Lemmy federated social channel | |
@framers/agentos-ext-channel-google-business |
Google Business Profile channel | |
@framers/agentos-ext-channel-blog-publisher |
Blog publisher (Dev.to, Hashnode, Medium, WordPress) | |
@framers/agentos-ext-channel-pinterest |
Pinterest social channel (API v5) | |
@framers/agentos-ext-channel-tiktok |
TikTok social channel (API for Business) | |
@framers/agentos-ext-channel-email |
Email messaging channel (nodemailer/imapflow) |
AgentOS extensions are organized into two tiers with different versioning and release strategies:
Seven foundational packages live at the monorepo root under packages/agentos-ext-*.
These are independently versioned with semantic-release CI/CD and have their own
GitHub Actions workflows:
| Package | Description |
|---|---|
agentos-ext-code-safety |
Static code analysis guardrail (injection, XSS, secrets) |
agentos-ext-pii-redaction |
PII detection & redaction pipeline |
agentos-ext-grounding-guard |
Claim extraction & source verification |
agentos-ext-ml-classifiers |
ML-based content classification (toxicity, jailbreak, injection) |
agentos-ext-topicality |
Topic drift detection & off-topic filtering |
agentos-ext-http-api |
HTTP API server for AgentOS |
agentos-ext-skills |
Skill loading & execution tooling |
Each has its own .github/ CI workflow, .releaserc.json, and publishes to npm
independently. Version bumps here do not affect curated extension versions.
~107 packages inside registry/curated/ use coordinated versioning via
Changesets. These are the full
extension catalog: channel adapters, integrations, research tools, media tools,
and more.
Version bumps here are batched into "Version Packages" PRs and published together.
The registry/curated/safety/ directory contains stub READMEs pointing to the
canonical core packages at the monorepo root. The actual source code for code-safety,
pii-redaction, and grounding-guard lives exclusively in packages/agentos-ext-* at
the monorepo root. The ml-classifiers and topicality packages still have curated
copies with additional modules (ClassifierOrchestrator, TopicDriftTracker, etc.) that
have not yet been merged upstream to the root packages.
agentos-extensions/
├── .changeset/ # Changesets for versioning & publishing
├── .github/workflows/ # CI, release, TypeDoc pages
├── logos/ # Branding assets
├── templates/ # Starter templates for new extensions
│ ├── basic-tool/ # Single tool template
│ ├── multi-tool/ # Multiple tools template
│ ├── guardrail/ # Safety/compliance template
│ └── workflow/ # Multi-step process template
├── registry/
│ ├── curated/ # Official & verified extensions
│ │ ├── auth/ # Authentication & subscriptions
│ │ ├── channels/ # Messaging & social channels (37 platform packs)
│ │ ├── communications/# Telegram bot, notifications
│ │ ├── integrations/ # External services (Telegram API)
│ │ ├── media/ # Giphy, image search, voice synthesis
│ │ ├── provenance/ # On-chain anchoring (tip-ingestion package is published separately)
│ │ ├── research/ # Web search, deep research, content extraction
│ │ ├── safety/ # Stub READMEs -> core packages (see above)
│ │ ├── system/ # CLI executor, browser automation, credential vault
│ │ ├── voice/ # Twilio, Telnyx, Plivo voice providers
│ │ └── productivity/ # Google Calendar, Gmail
│ └── community/ # Community-contributed extensions
├── scripts/ # Registry build & scaffolding tools
├── registry.json # Auto-generated extension manifest
├── pnpm-workspace.yaml # Workspace packages for publishing
└── typedoc.json # API docs config
Load all extensions at once via the curated registry:
npm install @framers/agentos-extensions-registry
import { AgentOS } from '@framers/agentos';
import { createCuratedManifest } from '@framers/agentos-extensions-registry';
const manifest = await createCuratedManifest({
tools: 'all',
channels: 'none',
secrets: {
'serper.apiKey': process.env.SERPER_API_KEY!,
'giphy.apiKey': process.env.GIPHY_API_KEY!,
},
});
const agentos = new AgentOS();
await agentos.initialize({ extensionManifest: manifest });
Only extensions whose npm packages are installed will load — missing packages are skipped silently.
npm install @framers/agentos-ext-web-search
import { AgentOS } from '@framers/agentos';
import webSearch from '@framers/agentos-ext-web-search';
const agentos = new AgentOS();
await agentos.initialize({
extensionManifest: {
packs: [{
factory: () => webSearch({ /* config */ })
}]
}
});
The extension surface is dependency-injected at four layers. Each layer is opt-in by default, so a host that installs five extensions does not pay the cost of the other 95, and an extension that needs a 110MB NER model does not load it until the first call.
Every extension is its own npm package. Nothing is imported until you npm install it. The @framers/agentos-extensions-registry SDK depends on the extension packages as peerDependenciesMeta.optional, so installing the registry alone gives you the catalog metadata without pulling any extension source. Add @framers/agentos-ext-pii-redaction to your package.json and the registry sees it; remove it and the registry drops it on the next manifest build.
createCuratedManifest() calls import.meta.resolve() on every catalog entry before adding it to the manifest. If the resolution throws, the entry is omitted. The runtime never sees it. There is no error, no warning, no missing-module crash. This is the difference between a catalog (metadata) and a registry that only emits packs you can actually run.
// Even if you ask for `tools: 'all'`, only installed packages reach the runtime.
const manifest = await createCuratedManifest({ tools: 'all' });
// → manifest.packs contains only @framers/agentos-ext-* packages found on disk.
requiredSecrets gates descriptor activationInside a pack, each descriptor (a single tool, guardrail, channel, or workflow) can declare requiredSecrets. Before activation, ExtensionManager checks whether each non-optional secret is resolvable from the secret store, the pack options, or the environment. Missing a secret? The descriptor is skipped and the rest of the pack still activates. Optional secrets unlock optional features (like the PII redaction extension's LLM-judge tier) without making them required.
// pii-redaction declares its LLM judge as an optional dependency.
{
id: 'pii_judge_resolver',
kind: 'tool',
requiredSecrets: [{ id: 'anthropic.apiKey', optional: true }],
// ...
}
// No ANTHROPIC_API_KEY in env? The judge is skipped, the rest of the pack works.
SharedServiceRegistry.getOrCreate() defers heavy resourcesML models, embedding indexes, ONNX runtimes, NER pipelines, and database pools are not loaded at activation. They are registered as factories and only constructed on the first call that needs them. The same instance is shared across descriptors in the same pack and (with a namespaced key) across packs.
async onActivate(ctx) {
// The 110MB BERT NER model. Not loaded yet.
const nerModel = await ctx.services.getOrCreate('pii:ner-model', async () => {
const { NerModel } = await import('./NerModel.js');
return NerModel.load();
});
this.scanTool.setNerModel(nerModel);
this.streamingGuardrail.setNerModel(nerModel);
}
The import('./NerModel.js') is a dynamic import: the model file itself does not enter the module graph until something asks for the service. First call pays the load cost; subsequent calls hit the cache. Tear-down releases everything via the registry's lifecycle.
A host installing @framers/agentos-ext-pii-redaction:
npm install @framers/agentos-ext-pii-redaction @framers/agentos-extensions-registry @framers/agentos. Nothing else.createCuratedManifest({ tools: 'all' }) resolves only the installed PII pack and emits a single-pack manifest.ExtensionManager.loadManifest() runs pack.onActivate(ctx), which registers a pii:ner-model factory in SharedServiceRegistry. The model file is not loaded.pii_scan, pii_redact) and one guardrail descriptor land in the kind-specific registries. The guardrail descriptor's config.canSanitize = true and config.evaluateStreamingChunks = true flag it for the two-phase dispatcher.evaluateInput() fires, calls into the NER pipeline, and the model loads on this first call. Subsequent requests hit the cached model.TEXT_DELTA chunk passes through the guardrail's evaluateOutput(). The dispatcher returns SANITIZE results with redacted text deterministically (Phase 1 chains sequentially), then runs all Phase 2 classifiers in parallel for any remaining checks.pack.onDeactivate(ctx) runs in reverse order on shutdown. The shared service registry releases the model.Same pattern for the four other guardrail packs: @framers/agentos-ext-ml-classifiers lazy-loads ONNX BERT models, @framers/agentos-ext-grounding-guard lazy-loads the NLI pipeline, @framers/agentos-ext-topicality lazy-loads embeddings, @framers/agentos-ext-code-safety is regex-only and pays no load cost.
This is the same auto-discovery surface that runtime-forged tools join: an agent that invents a function in session N can promote it via SkillExporter into a SKILL.md that the registry picks up on the next process start. Forging grows the surface mid-run; auto-discovery ships it as a first-class capability.
For the dispatcher mechanics (Phase 1 sanitizers, Phase 2 parallel classifiers, worst-action aggregation, mid-stream override), see Guardrails. For lifecycle internals, see Extension Loading.
createCuratedManifest() accepts:
| Option | Type | Default | Description |
|---|---|---|---|
tools |
string[] | 'all' | 'none' |
'all' |
Which tool extensions to enable. Pass an array of names (e.g. ['web-search', 'giphy']) to selectively load. |
channels |
ChannelPlatform[] | 'all' | 'none' |
'all' |
Which messaging channels to enable. |
secrets |
Record<string, string> |
{} |
API keys and tokens. Falls back to environment variables. |
logger |
RegistryLogger |
console |
Custom logger (info, warn, error, debug methods). |
basePriority |
number |
0 |
Base priority for all extensions. |
overrides |
Record<string, ExtensionOverrideConfig> |
— | Per-extension overrides for enabled, priority, and options. |
| Secret ID | Environment Variable | Extension |
|---|---|---|
serper.apiKey |
SERPER_API_KEY |
web-search |
serpapi.apiKey |
SERPAPI_API_KEY |
web-search |
brave.apiKey |
BRAVE_API_KEY |
web-search |
giphy.apiKey |
GIPHY_API_KEY |
giphy |
omdb.apiKey |
OMDB_API_KEY |
omdb |
clearbit.apiKey |
CLEARBIT_API_KEY |
clearbit |
elevenlabs.apiKey |
ELEVENLABS_API_KEY |
voice-synthesis |
pexels.apiKey |
PEXELS_API_KEY |
image-search |
unsplash.apiKey |
UNSPLASH_ACCESS_KEY |
image-search |
pixabay.apiKey |
PIXABAY_API_KEY |
image-search |
newsapi.apiKey |
NEWSAPI_API_KEY |
news-search |
telegram.botToken |
TELEGRAM_BOT_TOKEN |
channel-telegram |
discord.botToken |
DISCORD_BOT_TOKEN |
channel-discord |
slack.botToken |
SLACK_BOT_TOKEN |
channel-slack |
slack.appToken |
SLACK_APP_TOKEN |
channel-slack |
twitter.bearerToken |
TWITTER_BEARER_TOKEN |
channel-twitter |
twitter.apiKey |
TWITTER_API_KEY |
channel-twitter |
twitter.apiSecret |
TWITTER_API_SECRET |
channel-twitter |
twitter.accessToken |
TWITTER_ACCESS_TOKEN |
channel-twitter |
twitter.accessSecret |
TWITTER_ACCESS_SECRET |
channel-twitter |
instagram.accessToken |
INSTAGRAM_ACCESS_TOKEN |
channel-instagram |
linkedin.accessToken |
LINKEDIN_ACCESS_TOKEN |
channel-linkedin |
facebook.accessToken |
FACEBOOK_ACCESS_TOKEN |
channel-facebook |
threads.accessToken |
THREADS_ACCESS_TOKEN |
channel-threads |
bluesky.handle |
BLUESKY_HANDLE |
channel-bluesky |
bluesky.appPassword |
BLUESKY_APP_PASSWORD |
channel-bluesky |
mastodon.accessToken |
MASTODON_ACCESS_TOKEN |
channel-mastodon |
farcaster.neynarApiKey |
FARCASTER_NEYNAR_API_KEY |
channel-farcaster |
farcaster.signerUuid |
FARCASTER_SIGNER_UUID |
channel-farcaster |
lemmy.instanceUrl |
LEMMY_INSTANCE_URL |
channel-lemmy |
lemmy.username |
LEMMY_USERNAME |
channel-lemmy |
lemmy.password |
LEMMY_PASSWORD |
channel-lemmy |
google.accessToken |
GOOGLE_ACCESS_TOKEN |
channel-google-business |
reddit.clientId |
REDDIT_CLIENT_ID |
channel-reddit |
reddit.clientSecret |
REDDIT_CLIENT_SECRET |
channel-reddit |
reddit.username |
REDDIT_USERNAME |
channel-reddit |
reddit.password |
REDDIT_PASSWORD |
channel-reddit |
youtube.apiKey |
YOUTUBE_API_KEY |
channel-youtube |
pinterest.accessToken |
PINTEREST_ACCESS_TOKEN |
channel-pinterest |
tiktok.accessToken |
TIKTOK_ACCESS_TOKEN |
channel-tiktok |
email.smtpHost |
SMTP_HOST |
channel-email |
email.smtpUser |
SMTP_USER |
channel-email |
email.smtpPassword |
SMTP_PASSWORD |
channel-email |
// Only web search and giphy, no channels
const manifest = await createCuratedManifest({
tools: ['web-search', 'giphy'],
channels: 'none',
});
// Only Telegram and Discord channels, all tools
const manifest = await createCuratedManifest({
channels: ['telegram', 'discord'],
tools: 'all',
secrets: {
'telegram.botToken': process.env.TELEGRAM_BOT_TOKEN!,
'discord.botToken': process.env.DISCORD_BOT_TOKEN!,
},
});
// Override specific extension options
const manifest = await createCuratedManifest({
tools: 'all',
channels: 'none',
overrides: {
'web-search': { priority: 10 },
'cli-executor': { enabled: false },
},
});
# Use the scaffolding script
pnpm run create-extension
# Or copy a template
cp -r templates/basic-tool registry/curated/category/my-extension
cd registry/curated/category/my-extension
pnpm install
pnpm run dev
This repo uses Changesets for multi-package versioning and npm publishing. See RELEASING.md for the full workflow.
# 1. Make your changes to one or more extensions
# 2. Add a changeset describing what changed
pnpm changeset
# 3. Commit and push to master
git add . && git commit -m "feat: my changes" && git push
# 4. The GitHub Action opens a "Version Packages" PR
# → Merge it to publish updated packages to npm
Each extension is versioned and published independently. A change to web-search does not bump telegram.
| Type | Pattern | Example |
|---|---|---|
| Extension | @framers/agentos-ext-{name} |
@framers/agentos-ext-web-search |
| Template | @framers/agentos-template-{type} |
@framers/agentos-template-basic-tool |
All extensions get free CI/CD via GitHub Actions:
ci.yml): Lint, test, typecheck on every PRrelease.yml): Changesets auto-version PRs + npm publish on mergepages-typedoc.yml): API docs deployed to framersai.github.io/agentos-extensionsextension-validation.yml): Manifest & structure checks80% test coverage
See CONTRIBUTING.md for detailed guidelines.
All extensions in this repository are Apache 2.0 licensed.
Built by Manic Agency LLC / Frame.dev
Contact: team@frame.dev