KosmoKrator

data

Upstash Redis CLI for Headless Automation

Use the Upstash Redis CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 5 read 2 write API key auth

Upstash Redis CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The Upstash Redis CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Upstash Redis CLI for Headless Automation
kosmokrator integrations:configure upstash --set api_key="$UPSTASH_API_KEY" --set redis_url="$UPSTASH_REDIS_URL" --enable --read allow --write ask --json
kosmo integrations:call upstash.upstash_get_key '{"key":"example_key"}' --json

Discovery Before Execution

Agents and scripts can inspect Upstash Redis docs and schemas before choosing a function.

kosmo integrations:docs upstash --json
kosmo integrations:docs upstash.upstash_get_key --json
kosmo integrations:schema upstash.upstash_get_key --json
kosmo integrations:search "Upstash Redis" --json
kosmo integrations:list --json

Useful Upstash Redis CLI Functions

FunctionTypeParametersDescription
upstash.upstash_get_key Read key Retrieve the value stored at a Redis key. Returns null if the key does not exist.
upstash.upstash_set_key Write key, value, ex Store a key-value pair in Redis. Optionally set a TTL (time-to-live) in seconds so the key expires automatically.
upstash.upstash_delete_key Write key Delete a key from Redis. Returns the number of keys that were removed.
upstash.upstash_list_keys Read pattern List Redis keys matching a glob-style pattern. Defaults to "*" to list all keys.
upstash.upstash_list_databases Read none List all Redis databases in the Upstash account. Returns database IDs, names, regions, and endpoints.
upstash.upstash_get_database Read id Get details for a specific Upstash Redis database by ID, including endpoint, region, and usage stats.
upstash.upstash_get_current_user Read none Get current team information from Upstash, including team name, members, and plan details.

Automation Notes

Related Upstash Redis CLI Pages