guide-claude-code-cortex-redirect

Configures the ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN to route API calls to Snowflake Cortex.

3|1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sfc-gh-miwhitaker/sfe-public --skill guide-claude-code-cortex-redirect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guide-claude-code-cortex-redirect
Source: https://github.com/sfc-gh-miwhitaker/sfe-public/tree/main/guide-claude-code-cortex-redirect/.claude/skills/guide-claude-code-cortex-redirect
Command: npx skills add https://github.com/sfc-gh-miwhitaker/sfe-public --skill guide-claude-code-cortex-redirect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Redirects Claude Code CLI and Anthropic SDK inference to Snowflake Cortex, ensuring all inference runs within the Snowflake perimeter.

Core Features & Use Cases

  • Cortex Redirect: Redirects inference requests from Claude Code and Anthropic SDK to Snowflake Cortex.
  • Snowflake Integration: Integrates with Snowflake's Cortex API for in-cluster inference.
  • Authentication: Supports various authentication methods for secure access.
  • Use Case: For organizations that want to leverage Claude Code and Anthropic SDK but within the Snowflake ecosystem.

Quick Start

Set up the Claude Code CLI or Anthropic SDK to use Snowflake Cortex by updating the ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN environment variables.

Frequently Asked Questions about guide-claude-code-cortex-redirect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I redirect Claude Code inference requests to Snowflake Cortex?

To redirect Claude Code inference to Snowflake Cortex, update the ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN environment variables to point to the Cortex API, ensuring inference runs within the Snowflake perimeter.

Can I use the Anthropic SDK with Snowflake Cortex for in-cluster inference?

Yes, the Anthropic SDK is supported by redirecting its inference requests to Snowflake Cortex, allowing you to leverage Anthropic models while keeping inference within the Snowflake ecosystem.

What environment variables are required for Snowflake Cortex API redirection?

Redirection requires configuring the ANTHROPIC_BASE_URL to specify the Cortex API endpoint and ANTHROPIC_AUTH_TOKEN to provide the necessary authentication token for secure access.

Why redirect Anthropic SDK inference to Snowflake Cortex instead of calling the API directly?

Redirecting to Snowflake Cortex ensures all inference requests run within the Snowflake perimeter, providing in-cluster inference and allowing organizations to maintain data security and compliance.

Does redirecting Claude Code to Cortex support different authentication methods?

Yes, the redirection supports various authentication methods for secure access to the Snowflake Cortex API by configuring the appropriate tokens within the required environment variables.