aclif
Agent CLI framework: one grammar, canonical names across SaaS
Working when we checked on .
What is aclif?
aclif is an open-source framework for building command-line tools that AI agents use to reach SaaS platforms like Salesforce and ServiceNow through a unified abstraction. It is aimed at developers building agents and enterprises running gateway deployments where credentials, policy, and audit must be centralized. Commands load their definitions only when requested, so full APIs stay reachable without standing context cost. Every command carries declared safety metadata (mutability, blast radius, reversibility, idempotency), supports --dry-run and --confirm, and returns actionable errors. The same command classes run in a shell, in-process in a host application, or behind a long-lived gateway.
aclif pricing
Pricing model: Free
aclif pros
- One grammar, JSON envelope, and error vocabulary across every provider
- Introspection flags like --schema and --examples need no credentials or API quota
- Canonical alias sets map names such as customer to Account or core_company per instance
- Declared safety metadata lets policy refuse a command before its code loads
- Same command classes run in shell, host application, or gateway deployments
- New commands can be added via a JSON manifest over one HTTP endpoint, no code
aclif cons
- Requires Node 22 or later
- Salesforce setup needs the Salesforce CLI or a dedicated API user with security token
- Built-in providers shown are limited to Salesforce and ServiceNow
- Pricing and commercial plans are not documented
Frequently asked questions about aclif
What is aclif?
aclif is a framework for building command-line tools that AI agents use to reach SaaS platforms. It provides one grammar, canonical names, self-describing commands, and declared safety metadata across providers.
How is aclif installed?
Install globally with npm: 'npm install -g @aclif/core'. The binary ships with every built-in provider and requires Node 22 or later.
Which SaaS providers does aclif support?
The documentation shows Salesforce and ServiceNow as built-in providers, with commands such as 'aclif salesforce data query' and 'aclif servicenow data query'. Additional providers can be reached through the framework.
How does aclif save context tokens compared to MCP servers?
An MCP server publishes a fixed tool list that occupies context every turn. aclif loads a command's definition only when the agent asks for it, so the whole API of every provider stays reachable at no standing context cost.
Can a command be inspected without executing it or using credentials?
Yes. Flags like --schema, --examples, and --shape return before the command runs, need no credentials, and count against no API quota, letting agents discover and learn for free.
How does aclif handle errors?
Every error names the failure, the command that fixes it, and where the classifier has a rewrite rule, the corrected input ready to resend. The classifier is plain code with no model behind it.
How are credentials handled in gateway deployments?
The gateway resolves credentials per request from the enterprise's vault, checks policy against the acting user, records every call, and keeps connections warm. Agents hold no provider credentials.
What safety mechanisms do commands have?
Every command declares mutability, blast radius, reversibility, and idempotency. Every mutation accepts --dry-run, demands --confirm where its metadata says so, and writes an audit line after every run.
Who is aclif for?
It is for developers building AI agents that span multiple SaaS platforms, and for enterprises that need gateway deployments with centralized credentials, identity, policy, and audit.
What exit codes does the CLI use?
Exit codes are 0 for success, 1 for API errors, 2 for usage errors, and 3 for authentication errors. The contract and its JSON Schemas are published in CONTRACT.md on GitHub.