Meta tags:
description= Install Claude Code and connect it to ApiPass for setup, billing, and usage tracking;
Headings (most frequently used words):
claude, code, windows, step, and, tutorial, start, macos, linux, powershell, wsl2, before, you, install, configure, apipass, using, cost, credits, troubleshooting, additional, resources, update, behavior, command, not, found, authentication, fails, wrong, endpoint, need, the, next, guide, cookie, preferences,
Text of the page (most frequently used words):
the (46), #claude (43), code (32), api (29), #apipass (25), and (19), you (17), copy (16), windows (15), for (13), wsl2 (10), install (10), your (9), https (9), use (9), tutorial (8), powershell (8), usage (7), native (7), key (7), can (7), anthropic (6), dev (6), that (6), are (6), anthropic_auth_token (6), anthropic_base_url (6), export (6), pricing (5), set (5), guide (5), not (5), shows (5), run (5), environment (5), your_api_key (5), also (4), cli (4), variables (4), both (4), same (4), installation (4), each (4), request (4), token (4), credits (4), keep (4), from (4), inside (4), system (4), bash (4), linux (4), suno (3), logs (3), keys (3), codex (3), check (3), shell (3), command (3), git (3), installer (3), version (3), terminal (3), setting (3), page (3), account (3), current (3), when (3), session (3), start (3), step (3), user (3), zshrc (3), macos (3), update (3), winget (3), supported (3), accounts (2), setup (2), resources (2), want (2), open (2), directly (2), point (2), unless (2), traffic (2), there (2), confirm (2), base (2), url (2), make (2), sure (2), shells (2), still (2), installed (2), path (2), after (2), enabled (2), manage (2), how (2), table (2), deduction (2), section (2), model (2), using (2), instead (2), simple (2), one (2), project (2), auth (2), wsl (2), environmentvariabletarget (2), setenvironmentvariable (2), env (2), echo (2), settings (2), installs (2), homebrew (2), already (2), lives (2), fssl (2), curl (2), this (2), doctor (2), verify (2), npm (2), connect (2), cookie (2), policy (2), integration (2), blogs (2), video (2), image (2), sign (2), models (2), happyhorse, beats, seedance, additional, related, sidebar, need, next, subpath, deployment, specifically, routes, connection, 404, error, exactly, wrong, endpoint, either, deliberately, where, launch, authentication, fails, missing, whether, into, expected, completed, successfully, reopen, found, troubleshooting, has, controls, many, sessions, once, concurrent_limit, column, opening, row, details, payload, counts, totals, mix, trend, charts, managed, flow, aggregate, credit, rate, these, pages, inspect, what, was, charged, deducts, requests, processed, exact, amount, depends, active, rule, cost, off, prompts, interactive, opens, will, conversation, work, config, separate, files, state, different, between, two, persistent, level, write, lines, bashrc, source, persist, reads, its, routing, gateway, configure, automatically, background, their, package, manager, upgrade, commands, behavior, wsl1, codebase, whole, distribution, recommends, tooling, available, falls, back, claudecode, iex, ps1, irm, with, prefer, existing, node, cask, brew, simplest, option, users, natively, working, projects, simpler, configuration, access, require, have, before, coding, platform, deducted, decline, accept, cookies, personalize, content, analyze, see, our, preferences, trust, center, privacy, terms, service, copyright, marketplace, makes, efficient, discover, apis, all, place, hot, gemini, gpt, nano, banana, features, news, app, sdk, grok, getting, started, toggle, menu, ctrl, search, chat, enterprise, market,
Text of the page (random words):
claude code tutorial apipass models market pricing enterprise ai image api ai video api ai chat api search apipass models ctrl k 50 e en sign in apipass sign in 50 toggle menu getting started claude code tutorial codex cli tutorial grok cli tutorial suno api integration guide apipass sdk guide resources app blogs news pricing features claude code nano banana api gpt image 2 api gemini video api suno api hot blogs apipass apipass makes api integration simple and efficient discover connect and manage apis all in one place copyright apipass api marketplace terms of service privacy policy trust center cookie preferences we use cookies to personalize content and analyze traffic see our cookie policy accept decline claude code tutorial claude code tutorial claude code is anthropic s coding cli this guide shows how to install it on each supported platform connect it to apipass and check the credits deducted for each request before you start make sure you have an apipass api key from the api keys page claude code access enabled on that key if your account settings require it a terminal you can use on macos linux windows powershell or wsl2 windows users can run claude code natively in powershell or inside wsl2 if you are working on windows projects directly native powershell is the simpler path if your project already lives in wsl2 keep both installation and configuration inside wsl2 step 1 install claude code macos and linux anthropic s current native installer is the simplest option copy 1 curl fssl https claude ai install sh bash homebrew is also supported copy 1 brew install cask claude code if you prefer npm in an existing node js environment you can still use copy 1 npm install g anthropic ai claude code verify the installation copy 1 claude version 2 claude doctor windows powershell install claude code with the native windows installer copy 1 irm https claude ai install ps1 iex winget is also supported copy 1 winget install anthropic claudecode anthropic recommends git for windows on native windows so claude code can use bash tooling when available if git for windows is not installed claude code falls back to powershell verify the installation copy 1 claude version 2 claude doctor windows wsl2 open your wsl2 distribution and run the linux install command from this section inside the wsl shell copy 1 curl fssl https claude ai install sh bash do not use wsl1 if your codebase already lives in wsl2 keep the whole claude code setup there update behavior native installs update automatically in the background homebrew and winget installs update when you run their package manager upgrade commands step 2 configure apipass claude code reads its api routing from environment variables for apipass point the base url at the apipass gateway and set your apipass api key as the auth token macos and linux copy 1 export anthropic_base_url https api apipass dev 2 export anthropic_auth_token your_api_key to persist the settings copy 1 echo export anthropic_base_url https api apipass dev zshrc 2 echo export anthropic_auth_token your_api_key zshrc 3 source zshrc if you use bash write the same lines to bashrc instead windows powershell for the current session copy 1 env anthropic_base_url https api apipass dev 2 env anthropic_auth_token your_api_key for a persistent user level setting copy 1 system environment setenvironmentvariable anthropic_base_url https api apipass dev system environmentvariabletarget user 2 system environment setenvironmentvariable anthropic_auth_token your_api_key system environmentvariabletarget user windows wsl2 set the same variables inside the wsl shell copy 1 export anthropic_base_url https api apipass dev 2 export anthropic_auth_token your_api_key keep the wsl2 config separate from native windows powershell files environment variables and auth state are different between the two shells step 3 start using claude code start claude code in the project you want to work on copy 1 claude you can also use one off prompts after the interactive session opens claude code will keep the conversation in the same terminal session cost and credits apipass deducts credits when claude code requests are processed the exact amount depends on the model token usage and the active pricing rule for your key or account use these pages to inspect what was charged pricing for the current claude code rate table api logs for each request s credit deduction and token usage api usage for aggregate claude code usage claude code accounts if you are using a managed account instead of a simple api key flow in the logs table the credits column shows the deduction for each request opening a row s details shows the request payload and token counts in the usage page the claude code section shows totals model mix and trend charts if your api key has claude code enabled you can manage that setting on the api keys page the concurrent_limit setting controls how many claude code sessions can run at once for that key troubleshooting claude command not found reopen your terminal after installation and run copy 1 claude version if the command is still missing on windows check whether claude code installed into the expected path and confirm that git for windows or the native installer completed successfully authentication fails check that anthropic_base_url and anthropic_auth_token are both set in the same shell where you launch claude if you are on windows make sure you set the variables in either powershell or wsl2 not both unless you deliberately use both shells wrong endpoint if claude code shows a connection or 404 error confirm that the base url is exactly copy 1 https api apipass dev do not point claude code at a subpath unless your deployment specifically routes claude code traffic there need the next guide if you also want to set up codex open the related guide in the sidebar or go directly to codex cli tutorial additional resources anthropic claude code setup apipass api keys apipass pricing apipass api logs apipass api usage apipass claude code accounts happyhorse beats seedance suno api usage tutorial
|