Skip to main content

RedeemAiTicket

Redeems a one-time AI credential ticket and persists the Anthropic subscription tokens on the AI Adapter. Runs anonymously — the ticket code authenticates the call, no OctoMesh login required. The tokens come from the environment variables OCTO_CLI_AI_ACCESS_TOKEN / OCTO_CLI_AI_REFRESH_TOKEN (the -at / -rt arguments are deprecated). Token-related values are optional for developer smoke tests; missing values default to a fake pair with a far-future expiry.

Examples​

octo-cli -c RedeemAiTicket -tid <tenantId> -tc <ticketCode>

Options​

ShortLongRequiredDescription
-tid--tenantIdyesTenant the ticket was issued for
-tc--ticketCodeyesOne-time code from the admin's Refinery Studio modal
-at--accessTokennoDeprecated: plaintext Anthropic access token. A value on the command line ends up in the shell history and the process list.
Use the environment variable OCTO_CLI_AI_ACCESS_TOKEN instead. Optional — defaults to a fake for dev.
-rt--refreshTokennoDeprecated: plaintext Anthropic refresh token. A value on the command line ends up in the shell history and the process list.
Use the environment variable OCTO_CLI_AI_REFRESH_TOKEN instead. Optional — defaults to a fake for dev.
-aex--accessExpiresAtnoUTC expiry of the access token (ISO-8601). Optional — defaults to 2099 for dev.
-rex--refreshExpiresAtnoUTC expiry of the refresh token (ISO-8601). Optional — defaults to 2099 for dev.