---
title: "Discussion on \"Point Claude Code at a Custom Anthropic-Compatible Endpoint (and Fix the Usual 401/404 Errors)\" | Hashnode"
description: "Discussion on \"Point Claude Code at a Custom Anthropic-Compatible Endpoint (and Fix the Usual 401/404 Errors)\". Claude Code talks to models over the Anthropic protocol, not over the OpenAI-compatible /v1 API. That distinction is easy to miss until the first request comes back as 404, or a key you just pasted pr"
url: "https://hashnode.com/posts/point-claude-code-at-a-custom-anthropic-compatible-endpoint-and-fix-the-usual-401-404-errors/6b0e671417a36777b3b2dd47"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Point Claude Code at a Custom Anthropic-Compatible Endpoint (and Fix the Usual 401/404 Errors)](https://sujinai.hashnode.dev/point-claude-code-at-a-custom-anthropic-compatible-endpoint-and-fix-the-usual-401-404-errors?utm_source=hashnode&utm_medium=feed)

Claude Code talks to models over the Anthropic protocol, not over the OpenAI-compatible /v1 API. That distinction is easy to miss until the first request comes back as 404, or a key you just pasted pr

1d ago · 9 min read · sujinai.hashnode.dev  
Read the article

-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#ai](https://hashnode.com/tag/ai)
-   [#api](https://hashnode.com/tag/api)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)

## Written by

[SuJin AI](https://hashnode.com/@sujinai)

@sujinai

  
[View profile](https://hashnode.com/@sujinai)

SuJin AI (素槿) — Pay-as-you-go GPT & Claude API gateway for developers.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
