Skip to main content

Which API does this use?

This guide selects Messages through Claude Code’s Anthropic client. The base URL is https://api.asterwise.dev. The client builds the full endpoint: https://api.asterwise.dev/v1/messages. The model name chooses AsterCode or AsterWork, not the protocol. Use the base URL in the configuration below, rather than the full endpoint.

Before you start

Install Claude Code and create an API key in the AsterWise app. You also need prepaid balance.

Connect to AsterWise

Open a terminal. Replace the example API key below with your own, then run these commands. They apply to the current terminal session.
--bare starts a minimal session and skips automatic loading of project instructions (CLAUDE.md), skills, hooks, plugins, and MCP servers. It still provides file and shell tools. This is useful for checking the connection, but those project customizations will not load in this mode.

Context settings

Once Claude Code opens, ask it to explain a file in your project. Check Usage in AsterWise to confirm the connection. Before sending requests, copy the context and output exports from the app’s Setup page into the same terminal: CLAUDE_CODE_AUTO_COMPACT_WINDOW and CLAUDE_CODE_MAX_OUTPUT_TOKENS. Restart Claude Code after changing them. These control request size, not requests per minute.

Next steps

Official reference

Configuration reviewed on September 16, 2026. See model configuration and CLI reference. Tool updates can change behavior; this source review does not establish compatibility for every version or feature.