Introduction to Superglue
Relevant source files
The following files were used as context for generating this wiki page:
superglue is an open-source, AI-native integration platform. It builds and runs deterministic multi-step workflows, referred to as "tools," which connect various external systems like APIs, databases, and file servers. While AI agents generate the tool configurations during the building phase, the actual execution consists of 100% deterministic JavaScript logic.
Sources: packages/web/src/lib/agent/agent-prompts.ts:162-164, packages/web/src/lib/agent/skills/content/superglue-concepts.md:3-5
Core Entities
The superglue architecture relies on three primary building blocks: Systems, Tools, and Steps.
Systems
Systems are reusable building blocks that store connection information and credentials for external services. Each system contains a unique ID, a base URL, credentials, and optional documentation files used for AI context. Systems can be configured for different environments, such as "dev" or "prod," and they support various authentication protocols including OAuth, API keys, and connection strings.
Sources: packages/web/src/lib/agent/skills/content/superglue-concepts.md:12-14, packages/web/src/lib/agent/skills/content/systems-handling.md:105-107
Tools
A tool is a saved, reusable workflow. It defines the logic for interacting with systems through an ordered sequence of steps. Tools include optional schemas for input validation and output transformation to ensure data consistency.
Sources: packages/web/src/lib/agent/skills/content/superglue-concepts.md:8-10, packages/web/src/lib/agent/registries/tool-registry.ts:85-132
Steps
Steps are atomic operations within a tool. A step can perform an API call, a database query, a file operation, or a JavaScript transformation. Steps use camelCase IDs which serve as keys in the sourceData object for subsequent steps to reference.
Sources: packages/web/src/lib/agent/skills/content/superglue-concepts.md:16-18
System Architecture and Logic
The platform manages the transition from natural language instructions to executable deterministic code.
This diagram shows the flow from user intent to deterministic execution through the superglue agent and registry.
Sources: packages/web/src/lib/agent/agent-prompts.ts:4-16, packages/web/src/lib/agent/skills/content/superglue-concepts.md:3-6
Execution Pipeline
The ToolExecutor processes a tool by validating its structure and iterating through steps. For each step, it resolves system credentials, handles optional looping via dataSelector, and executes the specific protocol strategy.
Sources: packages/web/src/lib/agent/skills/content/superglue-concepts.md:25-33
| Protocol | URL Scheme Example |
|---|---|
| HTTP/HTTPS | https://api.stripe.com |
| PostgreSQL | postgres://user:pass@host:5432/db |
| Redis | redis://host:6379 |
| SFTP/FTP | sftp://host:22/path |
| MSSQL | sqlserver://host:1433 |
Sources: packages/web/src/lib/agent/skills/content/superglue-concepts.md:40-47, packages/shared/templates.ts:25-100
Integration Agent and Skills
superglue provides an AI agent to help users manage integrations. The agent utilizes "skills," which are detailed reference documentations loaded via the load_skill tool.
Primary Agent Workflow
- Gather Context: Review existing tools and systems.
- Setup Systems: Use
create_systemto define external connections. - Test Auth: Verify connectivity via
call_systemorauthenticate_oauth. - Build Tool: Generate a JSON configuration using
build_tool. - Execute/Iterate: Run the tool using
run_tooland refine usingedit_tool.
Sources: packages/web/src/lib/agent/agent-prompts.ts:6-16, packages/web/src/lib/agent/registries/tool-registry.ts:1082-1110
This sequence illustrates the standardized process for setting up a new authenticated system.
Sources: packages/web/src/lib/agent/agent-prompts.ts:6-9, packages/web/src/lib/agent/skills/content/systems-handling.md:52-60
Deployment Patterns
superglue supports four primary methods for deploying and executing tools:
- API + SDK: Integration into existing application codebases using Python or TypeScript SDKs.
- Scheduler: Automated execution on fixed cadences (e.g., cron jobs) managed via the web UI.
- MCP (Model Context Protocol): Exposing tools as callable functions for LLM agents like Claude Desktop or Cursor.
- CLI: Building, running, and managing integrations directly from the terminal.
Sources: packages/web/src/lib/agent/skills/content/superglue-concepts.md:54-124
Security and Authentication
The platform enforces strict security rules:
- Credential Namespacing: Credentials are accessed via
<<systemId_credentialKey>>variables. - Sensitive Data Handling: Agents are prohibited from asking users for secrets in chat; instead, they trigger secure UI components by setting credential values to empty strings.
- RBAC: Access rules can block
call_systemorrun_toolrequests based on organization policies.
Sources: packages/web/src/lib/agent/agent-prompts.ts:20-22, packages/web/src/lib/agent/skills/content/systems-handling.md:15-18
Summary
superglue serves as a bridge between high-level AI reasoning and reliable, deterministic software execution. By utilizing a modular system of tools and steps, it allows developers to build complex integrations that are generated by AI but execute with the predictability of standard code.