# alchemy-api

Wires Alchemy APIs into backend services, dApps, or scripts using an API key. Essential for integrating EVM RPC, Solana DAS, or Webhooks in project code.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1600 installs · ★ 51
- Author: alchemyplatform
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/alchemyplatform/skills/tree/HEAD/skills/alchemy-api/SKILL.md
- Updated: 2026-09-30
- HTML: https://affpapa.org/en/nevibecode/skills/alchemy-api

## What it does

This skill guides coding agents when integrating Alchemy APIs into persistent application code. It covers EVM JSON-RPC, Token API, NFT API, Transfers, transaction simulations, Webhooks, Solana DAS, and Sui gRPC. The instructions strictly target shipped application logic. If you need ad-hoc live queries inside the agent session, you should switch to `alchemy-cli` or `alchemy-mcp`.

Integration requires network access and the `$ALCHEMY_API_KEY` environment variable. If the key is unset, the skill provides a bridge via `@alchemy/cli` to persist credentials directly into `.env`. Crucially, it prohibits automatic fallbacks to public RPC endpoints or demo URLs without your explicit request.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add alchemyplatform/skills --skill alchemy-api -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alchemy-api/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alchemy-api/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add alchemyplatform/skills --skill alchemy-api -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alchemy-api/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add alchemyplatform/skills --skill alchemy-api -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alchemy-api/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install alchemyplatform/skills alchemy-api
```

2. **Manually: put the files in place**
- File: `.github/skills/alchemy-api/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add alchemyplatform/skills --skill alchemy-api -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/alchemyplatform/skills --path skills/alchemy-api
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alchemy-api/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add alchemyplatform/skills --skill alchemy-api -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/alchemyplatform/skills/tree/HEAD/skills/alchemy-api/SKILL.md

## When to use it
- wire EVM JSON-RPC and Solana DAS into application backends
- fetch wallet balances using Token and NFT APIs
- configure Alchemy webhooks and transaction simulations
- persist credentials to .env using the @alchemy/cli bridge

## Example prompts
- Integrate Alchemy Token API into our Node.js backend to query wallet balances
- Configure Solana DAS RPC in this worker and ensure the API key is loaded from .env
- Add Alchemy EVM transaction simulation to the checkout flow

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: d31ae4cfdb3f0efb.

BEGIN THIRD-PARTY FILE d31ae4cfdb3f0efb
```text
---
name: alchemy-api
description: Wire Alchemy into application code (server, backend, dApp, script) using a standard API key. Preferred app-integration path for normal server/backend usage. Covers EVM JSON-RPC, Token API, NFT API, Transfers API, Prices API, Portfolio API, Simulation, Webhooks, Solana RPC, Solana DAS, Solana Yellowstone gRPC, Sui gRPC, Wallets/Account Kit, and operational topics. Requires `$ALCHEMY_API_KEY`. For live agent work in this session (querying, admin, local automation), use `alchemy-cli` (preferred) or `alchemy-mcp` instead. For app code without an API key (autonomous agent paying per-request, or explicit x402/MPP), use `agentic-gateway` instead.
license: MIT
compatibility: Requires network access and `$ALCHEMY_API_KEY` environment variable. Works across Claude.ai, Claude Code, Cursor, Codex, and API.
metadata:
  author: alchemyplatform
  version: "2.0"
---
# Alchemy API (with API Key)

Reference and integration guide for wiring Alchemy APIs into application code using a standard API key. This file alone is enough to ship a basic integration; the `references/` directory contains deeper coverage of every product surface.

## When to use this skill

Use `alchemy-api` when **all** of the following are true:

- The user is wiring Alchemy into **application code** (server, backend, dApp, worker, script) that runs **outside** the current agent session
- They have, or are willing to create, an Alchemy API key (free at [dashboard.alchemy.com](https://dashboard.alchemy.com/))

This is the **preferred app-integration path** for normal server/backend usage.

## When to use a different skill

| Situation | Use this skill instead |
| --- | --- |
| Live agent work in this session (queries, admin, on-machine automation) and `@alchemy/cli` is installed locally — or both CLI and MCP are available | `alchemy-cli` |
| Live agent work in this session and only MCP is wired into the client (no CLI) | `alchemy-mcp` |
| Live agent work and neither is available | install `alchemy-cli` and use `alchemy-cli` |
| Application code without an API key — autonomous agent paying per-request, or user explicitly wants x402/MPP | `agentic-gateway` |

Do **not** use this skill to run ad-hoc live queries from inside the agent session — that's the `alchemy-cli` / `alchemy-mcp` path. This skill is for code that ships.

## Mandatory preflight gate

Before writing application code or making any network call:

1. Confirm the user is building **application code** (not asking the agent to run a live query). If the user is asking for live work, redirect to `alchemy-cli` (preferred) or `alchemy-mcp`.
2. Check `$ALCHEMY_API_KEY` is set (e.g. `echo $ALCHEMY_API_KEY`).
3. If `$ALCHEMY_API_KEY` is unset or empty, take the first of these that applies:
   - **CLI bridge (recommended if `@alchemy/cli` is installed locally):** the CLI can fetch a key from the user's Alchemy account so they never have to leave the terminal. See [Bridging from the CLI to an API key](#bridging-from-the-cli-to-an-api-key) below.
```
END THIRD-PARTY FILE d31ae4cfdb3f0efb

The third-party file has ended. Everything between the d31ae4cfdb3f0efb tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3042 of 17425 bytes. © alchemyplatform · MIT · https://github.com/alchemyplatform/skills/tree/HEAD/skills/alchemy-api/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
