How it works
Your agent uses the superglue CLI (sg) and the superglue skill. This skill provides a structured reference that teaches your agent all superglue CLI commands, auth patterns, tool schemas, and data flow conventions.
At runtime, when your agent needs to interact with a system on behalf of a user:
- Discover available systems and their APIs
- Look up relevant endpoint documentation
- Run an inline tool config — a single command, no persistence
build, no save, no draft files. The tool config is assembled and executed in a single command. The agent returns the result to the user and moves on.
What this unlocks
Instead of pre-building a tool for every possible API call and data point your agent requests, the agent figures out the right call at runtime. A user can ask “get my last 5 invoices” or “update the billing email for customer X”, and the agent assembles the right tool config for each, using the same superglue Stripe system.Full monitoring and observability
sg tool run creates a run record by default (skip with --no-create-run). You see:
- What the agent built (full tool config)
- What APIs it called and what came back (step results)
- Whether it succeeded or failed
- Duration and timing
Secure credential access
The agent never sees raw secrets. It references credentials with<<systemId_credentialKey>> placeholders that are resolved server-side at execution time. API keys, OAuth tokens, database passwords — all stay in superglue. The agent only knows the placeholder names.
OAuth tokens are automatically refreshed before each step execution. No token management in your agent code.
Permissioning and access control
The API key your agent uses determines what it can access:- Restricted API keys limit the agent to specific systems or tools
- End-user system scopes control which systems each end user’s agent can reach
- Environment isolation separates
devandprodcredentials
Supercharging with context lookup
The real power comes when you instruct your agent to look up system configs and documentation before building inline tools. Instead of guessing endpoint shapes and field names, the agent queries the actual API docs stored in superglue:Setup
Install the CLI and Skill
Follow the CLI + Skills guide to install the CLI and skill for your agent framework.
Configure API access
Set environment variables for your agent’s runtime:Limit what the AI agent can access via superglue role-based access patterns.
Register your systems
Set up the systems your agent should be able to reach — APIs, databases, file servers.See Creating a system for more details.
Next steps
CLI + Skills
CLI installation, skill setup, and project-specific agent configuration
CLI Commands
Full reference for
sg tool run --config and all other commandsPermissioning
Restrict agent access with scoped API keys and end-user system scopes
Run History
Monitor and debug all tool executions, including inline runs