- Names. Operations are
<service>.<operation>with AWS’s operation name in lower camel case (s3.listObjectsV2,ec2.describeInstances,costExplorer.getCostAndUsage). Inputs and outputs use AWS’s member names exactly (Bucket,MaxKeys,InstanceIds), so the AWS API reference applies as written. A misspelled member is refused with the right name. - Region. Every operation takes
region; without it a call goes to the connection’s default region. IAM, Route 53, CloudFront and Cost Explorer are global and answer from any region. - Values. Timestamps go in as ISO 8601 strings or epoch seconds and come back as ISO 8601 strings. Binary members take a string (sent as UTF-8) or
{ base64 }and come back as{ base64 }, so a value read back (a DynamoDBLastEvaluatedKey) goes in again as it is. An S3 upload’sBodytakes a string,{ text },{ base64 }or{ url }; a download comes back as a file. A Lambda function’s answer (lambda.invoke) comes back as text. - Required members. AWS’s required members are required here; one with a default (Route 53
EvaluateTargetHealth) is sent with it when left out. Rules AWS’s model doesn’t state (exactly one of two members) are left to AWS, which refuses the call with its own message. - Paging. List operations return AWS’s own token (
NextToken,ContinuationToken,Marker): pass it back to read the next page. - Other services.
callruns any operation by service and name: JSON APIs (Step Functions, EventBridge, Cognito, Organizations) and Query APIs (Auto Scaling, Elastic Load Balancing, ElastiCache).requestsends a signed HTTP request to any AWS REST API (Bedrock, API Gateway). Both only go to AWS hosts. - Risk. Deletes, terminations, sends (SES, SNS, SQS), running code (Lambda invoke, SSM commands, ECS tasks), launching paid resources (EC2 instances, RDS databases, NAT gateways), policy and permission changes, and
callandrequestaredestructive. With a permission mode such ascautiousorstrict, Corsair asks before running them.
- 2651 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the AWS API key before the first call: More: API Key
pnpm corsair setup --plugin=aws --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.AWS needs two credentials, stored on the account: the access key ID as api_key and the secret access key as secret_access_key, plus an optional default region. From the CLI: pnpm corsair setup --plugin=aws api_key=AKIA… secret_access_key=… region=us-east-1. Without a store, pass credentials: { accessKeyId, secretAccessKey, sessionToken? } and region to aws().4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List the objects in a bucketWhat’s next
API reference
Every
aws.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.