| title | SQL for cloud infrastructure, SaaS APIs and AI agents | ||||
|---|---|---|---|---|---|
| sidebar_label | Welcome to StackQL | ||||
| hide_title | true | ||||
| hide_last_update | true | ||||
| hide_table_of_contents | true | ||||
| keywords |
|
||||
| description | StackQL is an open-source engine that lets humans and AI agents query, provision and operate cloud and SaaS services with SQL, with no state file and no per-cloud SDK. | ||||
| image | /img/stackql-featured-image.png | ||||
| slug | / |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import DocsHero from '@site/src/components/DocsHero/DocsHero'; import { FaRobot, FaCode, FaSatelliteDish } from 'react-icons/fa';
<DocsHero
lightSrc="/img/stackql-logo-bold-light-mode.png"
darkSrc="/img/stackql-logo-bold-dark-mode.png"
alt="StackQL"
title={
<>
The Universal Interface
for the Agentic Era
</>
}
byline={
<>
Configuration-as-Data. Infrastructure-as-Context.
</>
}
/>
<Tabs defaultValue="iql" values={[ { label: 'Query', value: 'iql', }, { label: 'Results', value: 'data', }, ] }>
SELECT state, COUNT(*) as num_instances
FROM aws.ec2.instances
WHERE region = 'us-west-1'
GROUP BY state;|---------------------------------|
| state | num_instances |
|---------------------------------|
| running | 342 |
|---------------------------------|
| pending | 4 |
|---------------------------------|
| stopped | 38 |
|---------------------------------|
Deploying resources using your cloud provider is as easy as writing an INSERT statement...
INSERT INTO google.compute.disks (project, zone, name, sizeGb)
SELECT 'stackql-demo',
'australia-southeast1-a',
'test10gbdisk', 10;Using StackQL you can develop your way: declarative or procedural. With an easy grammar to learn and no state file to manage, you can get started quickly and use StackQL interchangeably with other infrastructure as code tools, cloud native or otherwise. StackQL provides a universal interface for AI agents to interact with cloud infrastructure. Uses for StackQL include:
- AI Agent Integration - Enable agents to provision and query cloud resources
- Control Plane Communication - Programmatic infrastructure provisioning for agentic workflows
- Data Plane Observability - Real-time monitoring and analytics for AI-driven operations
- Cloud infrastructure deployment (using SQL)
- Cloud asset inventory and reporting (using SQL)
- Cloud compliance and control attestation (using SQL)
- Configuration drift detection (using SQL)
- and more, only limited by your imagination!
- Installation - install the StackQL binary on macOS, Linux or Windows, or run it from Docker, a package manager or a cloud shell
- Getting started - the resource hierarchy, your first queries, using a provider, output modes, variables and templating
- Available providers - the cloud and SaaS providers you can query and manage, each with its own reference site
- Command line usage -
exec,shell,srv,mcp,registryand the global flags - MCP tools - the Model Context Protocol server and tools that give AI agents the same SQL interface
- Language specification -
SELECT,INSERT,UPDATE,DELETE,SHOW,DESCRIBE, functions and data types