@@ -140,14 +140,14 @@ agentcore status --runtime-id abc123
140140agentcore status --json
141141```
142142
143- | Flag | Description |
144- | ------------------- | -------------------------------------------------------------------------------------------------------------------------- |
145- | ` --runtime-id <id> ` | Look up a specific runtime by ID |
146- | ` --target <name> ` | Select deployment target |
147- | ` --type <type> ` | Filter by resource type: ` agent ` , ` memory ` , ` credential ` , ` gateway ` , ` evaluator ` , ` online-eval ` , ` policy-engine ` , ` policy ` |
148- | ` --state <state> ` | Filter by deployment state: ` deployed ` , ` local-only ` , ` pending-removal ` |
149- | ` --runtime <name> ` | Filter to a specific runtime |
150- | ` --json ` | JSON output |
143+ | Flag | Description |
144+ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
145+ | ` --runtime-id <id> ` | Look up a specific runtime by ID |
146+ | ` --target <name> ` | Select deployment target |
147+ | ` --type <type> ` | Filter by resource type: ` agent ` , ` memory ` , ` credential ` , ` gateway ` , ` evaluator ` , ` online-eval ` , ` payment ` , ` policy-engine ` , ` policy ` |
148+ | ` --state <state> ` | Filter by deployment state: ` deployed ` , ` local-only ` , ` pending-removal ` |
149+ | ` --runtime <name> ` | Filter to a specific runtime |
150+ | ` --json ` | JSON output |
151151
152152### validate
153153
@@ -473,6 +473,85 @@ agentcore add gateway-target \
473473> ` open-api-schema ` requires ` --outbound-auth ` (` oauth ` or ` api-key ` ). ` api-gateway ` supports ` api-key ` or ` none ` .
474474> ` mcp-server ` supports ` oauth ` or ` none ` .
475475
476+ ### add payment-manager
477+
478+ Add a payment manager to the project. See [ Payments] ( payments.md ) for full usage guide.
479+
480+ ``` bash
481+ # Minimal (defaults: AWS_IAM, interceptor, auto-payment enabled)
482+ agentcore add payment-manager --name MyManager
483+
484+ # With CUSTOM_JWT authorization
485+ agentcore add payment-manager \
486+ --name MyManager \
487+ --authorizer-type CUSTOM_JWT \
488+ --discovery-url https://cognito-idp.us-east-1.amazonaws.com/us-east-1_XXXXX/.well-known/openid-configuration \
489+ --allowed-clients " client-id-1,client-id-2"
490+
491+ # With advanced options
492+ agentcore add payment-manager \
493+ --name MyManager \
494+ --auto-payment true \
495+ --default-spend-limit 25.00 \
496+ --tool-allowlist " web_search,fetch_url" \
497+ --network-preferences " eip155:84532"
498+ ```
499+
500+ | Flag | Description |
501+ | ---------------------------------- | ----------------------------------------------------- |
502+ | ` --name <name> ` | Manager name (required in non-interactive mode) |
503+ | ` --authorizer-type <type> ` | ` AWS_IAM ` (default) or ` CUSTOM_JWT ` |
504+ | ` --discovery-url <url> ` | OIDC discovery URL (required for CUSTOM_JWT) |
505+ | ` --allowed-clients <clients> ` | Comma-separated client IDs (CUSTOM_JWT only) |
506+ | ` --allowed-audience <audience> ` | Comma-separated allowed audiences (CUSTOM_JWT only) |
507+ | ` --allowed-scopes <scopes> ` | Comma-separated allowed scopes (CUSTOM_JWT only) |
508+ | ` --pattern <pattern> ` | ` interceptor ` (default) or ` tool-based ` |
509+ | ` --auto-payment [value] ` | Enable automatic payment: ` true ` (default) or ` false ` |
510+ | ` --default-spend-limit <amount> ` | Default session spend limit in USD (default: ` 10.00 ` ) |
511+ | ` --tool-allowlist <tools> ` | Comma-separated tool names eligible for payment |
512+ | ` --network-preferences <networks> ` | Comma-separated network IDs (e.g., ` eip155:84532 ` ) |
513+ | ` --description <desc> ` | Human-readable description |
514+ | ` --json ` | JSON output |
515+
516+ ### add payment-connector
517+
518+ Add a payment connector to an existing payment manager. See [ Payments] ( payments.md ) for credential details.
519+
520+ ``` bash
521+ # CoinbaseCDP provider
522+ agentcore add payment-connector \
523+ --manager MyManager \
524+ --name MyCDPConnector \
525+ --provider CoinbaseCDP \
526+ --api-key-id your-api-key-id \
527+ --api-key-secret your-api-key-secret \
528+ --wallet-secret your-wallet-secret
529+
530+ # StripePrivy provider
531+ agentcore add payment-connector \
532+ --manager MyManager \
533+ --name MyStripeConnector \
534+ --provider StripePrivy \
535+ --app-id your-app-id \
536+ --app-secret your-app-secret \
537+ --authorization-private-key your-private-key \
538+ --authorization-id your-auth-id
539+ ```
540+
541+ | Flag | Description |
542+ | ----------------------------------- | ------------------------------------------ |
543+ | ` --manager <name> ` | Parent payment manager (required) |
544+ | ` --name <name> ` | Connector name (required) |
545+ | ` --provider <provider> ` | ` CoinbaseCDP ` (default) or ` StripePrivy ` |
546+ | ` --api-key-id <id> ` | Coinbase CDP API Key ID |
547+ | ` --api-key-secret <secret> ` | Coinbase CDP API Key Secret |
548+ | ` --wallet-secret <secret> ` | Coinbase CDP Wallet Secret |
549+ | ` --app-id <id> ` | Privy App ID (StripePrivy) |
550+ | ` --app-secret <secret> ` | Privy App Secret (StripePrivy) |
551+ | ` --authorization-private-key <key> ` | ECDSA P-256 private key (StripePrivy) |
552+ | ` --authorization-id <id> ` | Authorization key identifier (StripePrivy) |
553+ | ` --json ` | JSON output |
554+
476555### add credential
477556
478557Add a credential to the project. Supports API key and OAuth credential types.
@@ -739,19 +818,22 @@ agentcore remove runtime-endpoint --name prod
739818agentcore remove dataset --name MyDataset
740819agentcore remove config-bundle --name MyBundle
741820agentcore remove ab-test --name PromptComparison
821+ agentcore remove payment-manager --name MyManager -y
822+ agentcore remove payment-connector --name MyCDPConnector --manager MyManager -y
742823
743824# Reset everything
744825agentcore remove all -y
745826agentcore remove all --dry-run # Preview
746827```
747828
748- | Flag | Description |
749- | ------------------- | ------------------------------------------------- |
750- | ` --name <name> ` | Resource name |
751- | ` --engine <engine> ` | Policy engine name (required for ` remove policy ` ) |
752- | ` -y, --yes ` | Skip confirmation |
753- | ` --dry-run ` | Preview (` remove all ` only) |
754- | ` --json ` | JSON output |
829+ | Flag | Description |
830+ | ------------------- | --------------------------------------------------------- |
831+ | ` --name <name> ` | Resource name |
832+ | ` --engine <engine> ` | Policy engine name (required for ` remove policy ` ) |
833+ | ` --manager <name> ` | Parent payment manager (required for ` payment-connector ` ) |
834+ | ` -y, --yes ` | Skip confirmation |
835+ | ` --dry-run ` | Preview (` remove all ` only) |
836+ | ` --json ` | JSON output |
755837
756838---
757839
@@ -815,23 +897,26 @@ agentcore invoke --exec "cat /etc/os-release" --json
815897The prompt can come from four sources, resolved in this precedence order: ` --prompt ` > positional > ` --prompt-file ` >
816898piped stdin. ` --prompt-file ` combined with piped stdin content returns a collision error — pick one.
817899
818- | Flag | Description |
819- | ---------------------- | ---------------------------------------------------------------- |
820- | ` [prompt] ` | Prompt text (positional argument) |
821- | ` --prompt <text> ` | Prompt text (flag, takes precedence over positional) |
822- | ` --prompt-file <path> ` | Read the prompt from a file (useful for long / structured input) |
823- | ` --runtime <name> ` | Specific runtime |
824- | ` --target <name> ` | Deployment target |
825- | ` --session-id <id> ` | Continue a specific session |
826- | ` --user-id <id> ` | User ID for runtime invocation (default: ` default-user ` ) |
827- | ` --stream ` | Stream response in real-time |
828- | ` --tool <name> ` | MCP tool name (use with ` call-tool ` prompt) |
829- | ` --input <json> ` | MCP tool arguments as JSON (use with ` --tool ` ) |
830- | ` -H, --header <h> ` | Custom header (` "Name: Value" ` , repeatable) |
831- | ` --bearer-token <t> ` | Bearer token for CUSTOM_JWT auth |
832- | ` --exec ` | Execute a shell command in the runtime container |
833- | ` --timeout <seconds> ` | Timeout in seconds for ` --exec ` commands |
834- | ` --json ` | JSON output |
900+ | Flag | Description |
901+ | ------------------------------ | ---------------------------------------------------------------- |
902+ | ` [prompt] ` | Prompt text (positional argument) |
903+ | ` --prompt <text> ` | Prompt text (flag, takes precedence over positional) |
904+ | ` --prompt-file <path> ` | Read the prompt from a file (useful for long / structured input) |
905+ | ` --runtime <name> ` | Specific runtime |
906+ | ` --target <name> ` | Deployment target |
907+ | ` --session-id <id> ` | Continue a specific session |
908+ | ` --user-id <id> ` | User ID for runtime invocation (default: ` default-user ` ) |
909+ | ` --stream ` | Stream response in real-time |
910+ | ` --tool <name> ` | MCP tool name (use with ` call-tool ` prompt) |
911+ | ` --input <json> ` | MCP tool arguments as JSON (use with ` --tool ` ) |
912+ | ` -H, --header <h> ` | Custom header (` "Name: Value" ` , repeatable) |
913+ | ` --bearer-token <t> ` | Bearer token for CUSTOM_JWT auth |
914+ | ` --payment-instrument-id <id> ` | Payment instrument ID for x402 payments |
915+ | ` --payment-session-id <id> ` | Payment session ID for budget tracking |
916+ | ` --auto-session ` | Auto-create/reuse a payment session for testing |
917+ | ` --exec ` | Execute a shell command in the runtime container |
918+ | ` --timeout <seconds> ` | Timeout in seconds for ` --exec ` commands |
919+ | ` --json ` | JSON output |
835920
836921Piped stdin is auto-detected: when no prompt is supplied and stdin is not a TTY, the prompt is read from stdin.
837922
0 commit comments