Set the client base URL to the gateway domain; the configuration below shows whether to append /v1.
terminal
Configure the client
Point the client at Wokey with the configuration below.
Grok CLI
Use the official Grok CLI config to connect to Wokey. Add a grok-4.7 model entry with its own api_key; the api_key in a model entry takes precedence over the grok login session, so Responses requests go to the Wokey gateway.
If the client reports an error, rule out the key and base URL with curl first.
Grok CLI uses the OpenAI Responses format by default. A 200 from this request means the key and base URL are right. Replace YOUR_API_KEY with your key before sending it.