Agent skill

Drift SDK

by alsk1992 in alsk1992/CloddsBot

Drift Protocol perpetual futures trading on Solana (direct SDK)

MITAuto-check passedBusiness, Finance & HR

Install Drift SDK

skills CLI
$ npx skills add alsk1992/CloddsBot --skill drift-sdk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alsk1992/CloddsBot drift-sdk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/bundled/drift-sdk .claude/skills/drift-sdk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
drift-sdk
GitHub stars
2.9k
Used in
1 other repo
Token cost
~625 tokens
SKILL.md length
175 words
Files
2
Skills in repo
116
Repo updated
First seen
Licence
MIT

At a glance

Drift Protocol perpetual futures trading on Solana (direct SDK)

  • Tasks that involve Trading and backtesting
  • SKILL.md covers Quick Start, Commands, Configuration and Features, plus 2 more sections
  • Runs TypeScript scripts from its folder; reaches api.mainnet-beta.solana.com; needs DRIFT_PRIVATE_KEY

What it does

Drift SDK is an agent skill from alsk1992/CloddsBot. Drift Protocol perpetual futures trading on Solana (direct SDK)

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `index.ts`).

It sits in Business, Finance & HR, covering Trading and backtesting. It works with Solana. The repository describes itself as: Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes… The licence is MIT.

When your agent uses it

  • Tasks that involve Trading and backtesting

Example prompts

  • “/drift-sdk”

Requirements

  • Node.js
  • A credential in DRIFT_PRIVATE_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit c930628. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.mainnet-beta.solana.com

    Also links to:

    • drift.trade
    • docs.drift.trade
    • solana.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DRIFT_PRIVATE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Drift SDK loads about 625 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 175 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~625

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alsk1992/CloddsBot at commit c930628, republished under its MIT licence (© alsk1992). 175 words, ~625 tokens.

Download SKILL.mdSave it as .claude/skills/drift-sdk/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
drift-sdk
description
Drift Protocol perpetual futures trading on Solana (direct SDK)
emoji
🌊
commands
/drift
gates.envs
DRIFT_PRIVATE_KEY

Drift Protocol SDK

Direct SDK-based trading on Drift Protocol, Solana's leading perpetual futures DEX. Bypass the gateway requirement with native SDK integration.

Quick Start

bash
# Set credentials
export DRIFT_PRIVATE_KEY="your-solana-private-key"
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"

# Check balance
/drift balance

# Open a position
/drift long BTC 0.1
/drift short ETH 1 2500

# Close position
/drift close BTC

Commands

Trading
CommandDescription
/drift long <coin> <size> [price]Open long position
/drift short <coin> <size> [price]Open short position
/drift close <coin>Close position at market
/drift closeallClose all positions
/drift leverage <coin> <1-20>Set leverage

Examples:

bash
/drift long BTC 0.1           # Market buy 0.1 BTC
/drift short ETH 1 2500       # Limit sell 1 ETH at $2500
/drift leverage SOL 5         # Set SOL leverage to 5x
Orders
CommandDescription
/drift ordersList open orders
/drift cancel <orderId>Cancel order by ID
/drift cancel <coin>Cancel all orders for coin
/drift cancelallCancel all orders
/drift modify <orderId> [price] [size]Modify order
Account
CommandDescription
/drift balanceCollateral, margin, health factor
/drift positionsOpen positions with PnL

Configuration

bash
# Required
export DRIFT_PRIVATE_KEY="base58_or_json_array"

# Optional
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"
export DRY_RUN=true  # Test mode

Features

  • Direct SDK - No gateway server required
  • Perp & Spot - Trade both market types
  • Order Types - Market, limit, post-only, IOC, FOK
  • Position Management - Track unrealized PnL, entry prices
  • Risk Metrics - Health factor, margin usage, liquidation prices
  • Leverage Control - Set per-market leverage (1-20x)

Markets

MarketIndexMax Leverage
BTC-PERP020x
ETH-PERP120x
SOL-PERP220x
.........

Resources

© alsk1992, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in src/skills/bundled/drift-sdk of alsk1992/CloddsBot.

  • SKILL.md
  • index.ts

Open the folder on GitHubat commit c930628

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in alsk1992/CloddsBot, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Drift SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Drift SDK compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Drift SDK this skillalsk1992/CloddsBot2.9k1 repos~625Automated safety check: PassMIT
Prismirfndi/prism-liquidity-agent122—~1.5kAutomated safety check: PassMIT
Solana Sniper Botnpc-live/clawfirm156—~913Automated safety check: NotesNone
Solana Payments Wallets Tradingnpc-live/clawfirm1561 repos~4.7kAutomated safety check: PassMIT
Copy Tradingagiprolabs/claude-trading-skills410—~2.4kAutomated safety check: PassMIT
Gmgn PortfolioGMGNAI/gmgn-skills604—~5.8kAutomated safety check: NotesMIT

Similar skills

  • Prism

    irfndi/prism-liquidity-agent

    Operate Prism, an autonomous Solana DLMM liquidity agent for Meteora pools.

    122 GitHub stars~1.5k tokensUpdated 10 days ago
    Business, Finance & HRAuto-check passed
  • Solana Sniper Bot

    npc-live/clawfirm

    Autonomous Solana token sniper and trading bot. An agent skill from npc-live/clawfirm.

    156 GitHub stars~913 tokensUpdated 3 mo ago
    Business, Finance & HRAuto-check: notes
  • Pay people in SOL or USDC, buy and sell tokens, check prices, discover trending and new tokens, create and manage Solana wallets, stake SOL, earn yield through lending and managed vaults, borrow…

    156 GitHub starsUsed in 1 repo~4.7k tokens
    Business, Finance & HRAuto-check passed
  • Copy Trading

    agiprolabs/claude-trading-skills

    Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Gmgn Portfolio

    GMGNAI/gmgn-skills

    Analyze one or many crypto wallets by address — holdings, batch realized/unrealized P&L, win rate, trading history, performance stats, specific token balance, and tokens created by a developer…

    604 GitHub stars~5.8k tokensUpdated 10 days ago
    Business, Finance & HRAuto-check: notes
  • Trading Signal

    binance/binance-skills-hub

    Per-trade smart-money signals — each result is a discrete buy or sell event from a tracked smart-money wallet, with trigger price, current price, max gain since trigger, and exit rate.

    1.1k GitHub stars~682 tokensUpdated 27 days ago
    Business, Finance & HRAuto-check passed

More from alsk1992/CloddsBot

All 116 skills in this repo
  • Qmd

    alsk1992/CloddsBot

    Local hybrid search for markdown notes and docs. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub starsUsed in 3 repos~1.2k tokens
    Auto-check passed
  • Edge

    alsk1992/CloddsBot

    Find mispriced markets by comparing to external models and data sources

    2.9k GitHub starsUsed in 1 repo~472 tokens
    Auto-check passed
  • Embeddings

    alsk1992/CloddsBot

    Vector embeddings configuration and semantic search. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • News

    alsk1992/CloddsBot

    Monitor news and correlate with prediction market movements. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub starsUsed in 1 repo~462 tokens
    Auto-check passed
  • Opportunity

    alsk1992/CloddsBot

    Find and execute cross-platform arbitrage opportunities across prediction markets

    2.9k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Portfolio

    alsk1992/CloddsBot

    Track your positions and P&L across prediction markets and futures exchanges

    2.9k GitHub starsUsed in 1 repo~911 tokens
    Auto-check passed

Works with

Questions about Drift SDK

What does Drift SDK do?

Drift Protocol perpetual futures trading on Solana (direct SDK). Drift SDK is an agent skill from alsk1992/CloddsBot.

When should I use Drift SDK?

Drift SDK fits situations like: tasks that involve Trading and backtesting.

How do I install Drift SDK in Claude Code?

Run `npx skills add alsk1992/CloddsBot --skill drift-sdk -a claude-code`. Or copy the skill folder (src/skills/bundled/drift-sdk in alsk1992/CloddsBot) into .claude/skills/drift-sdk in your project. Claude Code loads it when a task matches its description.

How do I install Drift SDK in Codex?

Run `npx skills add alsk1992/CloddsBot --skill drift-sdk -a codex`. Or copy the skill folder (src/skills/bundled/drift-sdk in alsk1992/CloddsBot) into .agents/skills/drift-sdk in your project. Codex loads it when a task matches its description.

Can I use Drift SDK in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alsk1992/CloddsBot --skill drift-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/drift-sdk, .gemini/skills/drift-sdk, .github/skills/drift-sdk and .opencode/skills/drift-sdk in your project.

What does Drift SDK need to run?

Going by SKILL.md and its folder, Drift SDK needs TypeScript for the scripts in its folder and credentials named DRIFT_PRIVATE_KEY. Our summary lists: Node.js; A credential in DRIFT_PRIVATE_KEY.

Does Drift SDK access the network?

SKILL.md names 4 domains. In commands or code: api.mainnet-beta.solana.com; the agent is likely to contact it when it follows the instructions. As links in the text: drift.trade, docs.drift.trade and solana.com. This is read from the text; nothing was executed.

Is Drift SDK safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Drift SDK use?

Drift SDK is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Drift SDK use?

About 625 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Drift SDK?

Skills that share tags, products or a category with Drift SDK: Prism (irfndi/prism-liquidity-agent, 122 stars), Solana Sniper Bot (npc-live/clawfirm, 156 stars), Solana Payments Wallets Trading (npc-live/clawfirm, 156 stars) and Copy Trading (agiprolabs/claude-trading-skills, 410 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Drift SDK?

alsk1992 (a GitHub user) maintains it in alsk1992/CloddsBot, which has 2,903 GitHub stars. The repository holds 116 skills in this directory. The repository was last updated on October 2, 2026.

Source: alsk1992/CloddsBot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.