# Download the Claude Code hook

Source: https://immiscible.fly.dev/docs/api/get-downloads-claude-code-hook-mjs

`GET /downloads/claude-code-hook.mjs`

The `PreToolUse` hook script: one file, no dependencies, Node 22. See [the Claude Code hook](https://immiscible.fly.dev/docs/guides/mcp-proxy.md#the-claude-code-hook).

## Authentication

Public. No credential. Public routes are rate limited per address.

## Request

curl:

```bash
curl "https://immiscible.fly.dev/downloads/claude-code-hook.mjs"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/downloads/claude-code-hook.mjs', {
});
console.log(res.status, await res.text());
```

Python:

```python
import requests

res = requests.get(
    "https://immiscible.fly.dev/downloads/claude-code-hook.mjs",
)
print(res.status_code, res.text)
```
