Claude Code Integration

Claude Code Integration

Bring Ask Sage's AI models directly into your terminal with Claude Code CLI

Claude Code CLI

Table of Contents
  1. Prerequisites
  2. Installation
  3. Configuration Methods
  4. DoD/DoW Network Configuration
  5. Troubleshooting
  6. Additional Resources

Prerequisites

Prerequisites

Before you begin, ensure you have the following:

Ask Sage Account

Sign up or log in

Ask Sage API Key

Valid user API Key from Ask Sage

Claude Code

Installed on your system

Node.js

Required for Claude Code installation

Installation

Installation

Claude Code can be installed in two ways:

Option 1: VSCode Extension

Install the Claude Code extension directly in Visual Studio Code:

1

Open VSCode and navigate to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on Mac)

2

Search for "Claude Code for VS Code" by Anthropic

3

Click the Install button to add the extension to your VSCode

Claude Code VSCode Extension Installation

Option 2: CLI Installation (via npm)

npm install -g @anthropic-ai/claude-code
# Verify installation
claude-code --version

Configuration Methods


DoD/DoW Network Configuration


Troubleshooting

Troubleshooting

Issue: "Token is invalid" error

Solutions:

  • Verify your API Key is correct
  • Remove any extra spaces from the token string
Issue: Connection errors

Solutions:

  • Verify the ANTHROPIC_BASE_URL is correct and accessible
  • Verify your Ask Sage API Key is correct
  • Ensure there are no firewall rules blocking the connection
Issue: Certificate errors in DoD/DoW environment

Solutions:

  • Verify certificate path is correct in your configuration
  • Ensure certificate is in PEM format (not DER)
  • Check you have the complete certificate chain
  • Windows users: Use double backslashes (\\) in JSON configuration
Issue: Throttling (burndown)

Solutions:

  • Set CLAUDE_CODE_MAX_OUTPUT_TOKENS and MAX_THINKING_TOKENS in your settings.json
  • Ensure CLAUDE_CODE_MAX_OUTPUT_TOKENS > MAX_THINKING_TOKENS
  • Recommended values: CLAUDE_CODE_MAX_OUTPUT_TOKENS: 4096, MAX_THINKING_TOKENS: 1024

Additional Resources

Documentation & Resources

Have Questions? Reach out to us at support@asksage.ai

Back to top

Copyright © 2025 Ask Sage Inc. All Rights Reserved.