Create a sandbox customer
Create the customer
Switch to sandbox
Turn on the Sandbox switch in the dashboard header.
Open the project
Open the Sandbox project.
Open the customers tab
Select Customers. Only Sandbox projects show Create customer.
Select Create customer
Modem creates a synthetic customer. From the customer’s actions, select Copy customer ID and Copy customer secret. Synthetic gateway authentication needs both. Keep the secret private.
Create the customer with the CLI
modem-cli customers create creates a synthetic customer for a Sandbox project. The output includes the customer ID and the sandboxSecret.
modem-cli customers create --project-id <project-id>Run a test completion
modem-cli customers complete runs a chat completion billed to a customer. It takes the project, customer, and product IDs, the provider, and either --model with --prompt or a JSON file in --request.
modem-cli customers complete \
--project-id <project-id> \
--customer-id <customer-id> \
--product-id <product-id> \
--provider openai \
--model gpt-4o-mini \
--prompt "Hello"The command streams by default. --no-stream waits for the whole response. --json prints the full response, or one JSON object per chunk.