Claude Code with an employee's own seat
Employees can use Claude Code through Pishtaq with their own seat on a Claude plan that includes Claude Code. Each request carries the employee's own Claude sign-in to Anthropic, and Pishtaq recognizes the employee by a personal Pishtaq key. The company does not buy or share a provider key for this, and Pishtaq never stores the Claude sign-in token.
Everything else still applies. Masking and secret detection run on every request, so the personal data and secrets that Pishtaq detects are swapped or blocked before the request reaches Anthropic. Which requests are covered lists what masking leaves out.
Set it up (administrators)
Add one model entry for each model name Claude Code asks for. Give the entries no provider key, because the employee's own sign-in is used instead, and set every cost to zero, because the company does not pay for these requests. The example uses the current names. Claude Code also asks for older model names, so add an entry for each older name that your employees' Claude Code asks for.
model_list:
- model_name: claude-sonnet-5-5
litellm_params:
model: anthropic/claude-sonnet-5-5
model_info:
input_cost_per_token: 0
output_cost_per_token: 0
cache_creation_input_token_cost: 0
cache_read_input_token_cost: 0
- model_name: claude-opus-5-5
litellm_params:
model: anthropic/claude-opus-5-5
model_info:
input_cost_per_token: 0
output_cost_per_token: 0
cache_creation_input_token_cost: 0
cache_read_input_token_cost: 0
- model_name: claude-haiku-5-5
litellm_params:
model: anthropic/claude-haiku-5-5
model_info:
input_cost_per_token: 0
output_cost_per_token: 0
cache_creation_input_token_cost: 0
cache_read_input_token_cost: 0
- model_name: claude-fable-5-2
litellm_params:
model: anthropic/claude-fable-5-2
model_info:
input_cost_per_token: 0
output_cost_per_token: 0
cache_creation_input_token_cost: 0
cache_read_input_token_cost: 0
general_settings:
litellm_key_header_name: x-litellm-api-key
router_settings:
disable_cooldowns: true
The three settings outside the model list do the following:
litellm_key_header_nametells Pishtaq to read the employee's Pishtaq key from a separate header. The standardAuthorizationheader is taken by the employee's Claude sign-in. Pishtaq renames request headers that start withx-pishtaq-tox-litellm-internally, so employees sendx-pishtaq-api-keyand the setting namesx-litellm-api-key.disable_cooldowns: truestops Pishtaq from pausing a model after failures. These entries are shared by every employee, and each request uses its own Claude sign-in, so one person's failed request, for example an expired sign-in or a plan limit, must not take the model away from everyone else.- The zero costs make spend show 0 for these models, because Anthropic bills the employee's plan, not the company.
Turn on the masking and secret guardrails as described in Personal data masking. Nothing changes in that setup for Claude Code.
Connect Claude Code (employees)
-
In the Pishtaq admin UI, open Virtual Keys, click + Create New Key, and create a personal key. Copy it. If you do not have access to the admin UI, ask your administrator for a key.
-
Tell Claude Code where Pishtaq is and which key to send. In a terminal, run:
export ANTHROPIC_BASE_URL=https://pishtaq.example.comexport ANTHROPIC_CUSTOM_HEADERS="x-pishtaq-api-key: Bearer <your Pishtaq key>"To keep the settings, put the same two values in the
envblock of~/.claude/settings.jsoninstead:{"env": {"ANTHROPIC_BASE_URL": "https://pishtaq.example.com","ANTHROPIC_CUSTOM_HEADERS": "x-pishtaq-api-key: Bearer <your Pishtaq key>"}} -
Run
claude, then/login, and sign in with your own Claude plan.
The word Bearer and the space after it are required. Without them, Pishtaq answers 401 Malformed API Key.
Good to know
- Spend shows 0 for these models in Pishtaq, because the usage is billed to the employee's Claude plan.
- Masking and secret detection still run on every request.
- Clients that send their Pishtaq key in the
Authorizationheader keep working as before.