Claude Code setup guide
For SunNeverSets service users: configure Claude Code on Windows or macOS with your console endpoint and send your first request.
For users with an active SunNeverSets service.
This tutorial connects Claude Code to an endpoint provided by the SunNeverSets console. Before starting, confirm that support has completed delivery, the account is ready, and you may begin. Claude Code must already be installed on your computer.
Not installed yet, or using Claude Desktop?
Ask support for installation help or a Desktop guide matched to your operating system and app version. The settings.json steps below are for Claude Code. Do not apply them to Desktop or substitute a third-party switching tool.
From your console to the first test message.
- 01
Confirm delivery and any waiting requirement
Follow the delivery status and start time confirmed by support. Users who need the account email and password must wait 30 minutes after receiving the account without signing in to Claude or sending requests; requesting those credentials removes warranty coverage. The user guide allows users who do not need them to skip this step.
- 02
Sign in and confirm the account is ready
Use the console sign-in email confirmed by support and enter its verification code. In account management, check that the intended account is Ready. The console sign-in email and hosted Claude account are different concepts.
Open console - 03
Create an endpoint and copy your configuration
Under Endpoints, choose Create endpoint, give it a recognizable name, and select or check its callable accounts. Open its details and copy the full Base URL and API Key, or the console-generated configuration. Do not add or remove any trailing path.
- 04
Back up and edit settings.json
Back up your existing file, then open it in your user directory. Merge the two fields from the console into env and preserve other settings. If env already exists, do not create a duplicate field.
Windows%USERPROFILE%\.claude\settings.jsonmacOS~/.claude/settings.jsonThis example shows the structure only. Replace the placeholders with your own console settings.
settings.json{ "env": { "ANTHROPIC_BASE_URL": "REPLACE_WITH_FULL_URL_FROM_YOUR_CONSOLE", "ANTHROPIC_AUTH_TOKEN": "REPLACE_WITH_KEY_FROM_YOUR_CONSOLE" } }Use straight double quotes, no comments or trailing commas, and ensure the file is named settings.json. Save, quit Claude Code, and reopen it.
Official Claude Code settings documentation - 05
Send a simple message and check its record
For example, send “Hello, please reply briefly.” Confirm the response, then check the matching request record and time in the console. Begin your own work after the test succeeds; keep Max usage light for the first two days.
If the connection fails, check three things first.
- Is the account ready, and is the service still active?
- Are the full address and key from the same endpoint?
- Is the JSON valid, and did you restart Claude Code after editing it?
Do not expose complete keys in group chats, public repositories or screenshots. Send redacted error details, your client version and the time of the issue.
Questions, purchases and support start here.
Tell us what you want to do, which computer you use and where you need help. Support will review the plan and next steps with you.