Cline
Add Inferway to the Cline CLI as an OpenAI Compatible provider.
Use Inferway as an OpenAI Compatible provider in Cline. Your account must have model access enabled before connecting.
Current Inferway catalog
No verification record exists for z-ai/glm-5.3-uncensored in this client; the configuration below is a reference.
Before you start
Install the named client using its official instructions. Pi here means the pi-mono coding agent; Hermes means Nous Research's Hermes Agent.
Once your Inferway account is activated, create a key under Console → API Keys. Use a dedicated key for this client; a project's monthly budget caps what it can spend. Both live and test prefixes use the same inference and billing path; test is an environment label, not a free or simulated inference mode.
Use an Inferway key for Inferway's endpoint. An OpenRouter key belongs to OpenRouter and cannot authenticate to this address.
Keep the key in the client's credential store or your local environment. Do not paste it into a prompt, screenshot, or committed configuration. These examples use bash/zsh on macOS or Linux.
Make the key available to this terminal
The prompt below hides your input and keeps the key out of shell history. Start the client from this same terminal; a separately opened app may not inherit this variable.
printf 'Inferway API key: ' IFS= read -r -s INFERWAY_API_KEY printf '\n' export INFERWAY_API_KEY
Confirm the endpoint and model
Use the full model ID z-ai/glm-5.3-uncensored. The Base URL ends in /v1 once; do not append /chat/completions to a Base URL setting. Check that the response below contains the model ID.
curl --fail-with-body --silent --show-error --max-time 30 \ 'https://api.inferway.ai/v1/models' \ -H "Authorization: Bearer $INFERWAY_API_KEY"
Configure the Cline CLI
Run once where the key is set. Cline saves the provider and key under ~/.cline; keep it out of source control. It appends /chat/completions to the base URL itself.
cline auth --provider openai-compatible \ --apikey "$INFERWAY_API_KEY" \ --modelid 'z-ai/glm-5.3-uncensored' \ --baseurl 'https://api.inferway.ai/v1'
Run a task
Without --thinking the model answers with thinking off. --thinking low|medium|high turns the model's thinking on, which is slower and bills reasoning tokens; --thinking none keeps it off.
cline 'Reply with exactly: connected'Confirm the connection
- Start a fresh conversation with the configured provider and model. Ask: "Reply with exactly: connected". Confirm that text arrives without an API error.
- Open Console → Requests to see the request status and token usage.
- For coding tasks, ask the client to read a non-sensitive file. Review any proposed edits before applying them.
Frequently asked questions
Which provider type should I select in Cline? Select 'OpenAI Compatible'. Set the Base URL to https://api.inferway.ai/v1 and enter your Inferway API key.
What is the status of tool execution and streaming? Cline connects via Chat Completions. We have verified basic conversation, file reading, file editing, and shell execution round trips with streaming observed for select verified models. Models without a test receipt are marked unverified.
How do I switch back or change models? Select any other provider from Cline's settings dropdown menu. The configured custom endpoint does not alter other provider settings.
How should I troubleshoot budget, rate-limit or timeout errors? Check wallet balance and key limits, respect Retry-After, and pause repeated automated retries while diagnosing.
Cost and usage
Actual consumption is recorded by Inferway: open Console → Requests to see each request's status and token usage, and Console → Usage for totals. Numbers a client shows locally are its own estimates, not billing amounts; rely on the Console.
Verification status
There is no verification record for this model in this client: the recipe below is a configuration reference, not a tested integration for that model.
If a request fails
Authentication: check that an API key is present, active, and allowed to use the model. Reopen the client from the terminal containing the variable. Never print the full key when debugging.
Wrong endpoint or model: check for a duplicate /v1, use the exact published model ID, and confirm the client is using Chat Completions. A request to /responses or /completions cannot be repaired by changing the key.
Limits or timeout: check wallet balance and key limits, respect Retry-After, and reduce the prompt or output budget. Keep streaming enabled for long outputs. Avoid repeated agent retries while diagnosing.
When contacting support, share the client version, model ID, timestamp, and request ID if available. Redact credentials and source code.
Available Text Models & Pricing
All models below can be called directly in your client by specifying the model ID. Rates are the prices published for your market; data retention differs by model, see the Data Retention column.
Loading prices
| Model Name | Model ID | Context Window | Data Retention | Input Price | Output Price | Typical Session Cost |
|---|---|---|---|---|---|---|
| DeepSeek V4.1 Flash 1017 | deepseek/deepseek-v4.1-flash-1017 | 1,048,576 | Third-party provider; its retention terms apply | — | — | — |
| DeepSeek V4.1 Flash 1017 ZDR | deepseek/deepseek-v4.1-flash-1017-zdr | 1,000,000 | Provider states zero data retention | — | — | — |
| DeepSeek V4.1 Flash Uncensored | deepseek/deepseek-v4.1-uncensored | 1,048,576 | Third-party provider; its retention terms apply | — | — | — |
| MiniMax M3.1 Flash | minimax/minimax-m3.1-flash | 1,048,576 | Third-party provider; its retention terms apply | — | — | — |
| Kimi K3.1 Pro | moonshotai/kimi-k3.1-pro | 1,048,576 | Third-party provider; its retention terms apply | — | — | — |
| MiMo-V2.6 Flash | xiaomi/mimo-v2.6-flash | 393,216 | Provider states zero data retention | — | — | — |
| GLM-5.3 | z-ai/glm-5.3 | 1,000,000 | Third-party provider; its retention terms apply | — | — | — |
| GLM-5.3 Flash Uncensored | z-ai/glm-5.3-flash-uncensored | 1,048,576 | Third-party provider; its retention terms apply | — | — | — |
| GLM-5.3 Uncensored | z-ai/glm-5.3-uncensored | 1,048,576 | Third-party provider; its retention terms apply | — | — | — |
Typical Coding Session Cost Example
Note: This example assumes a typical multi-turn coding session with 50,000 input tokens and 2,000 output tokens (input covers codebase context and turn history; output covers generated code edits and replies). Token counts are illustrative constants; unit prices are the rates published for your market (in that market's currency), and the total cost is calculated dynamically at render time. Actual charges depend on verified usage recorded in the console.