Agent skill

Betfair

by alsk1992 in alsk1992/CloddsBot

Betfair Exchange sports betting and trading. An agent skill from alsk1992/CloddsBot.

MITAuto-check passedBusiness, Finance & HR

Install Betfair

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

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

GitHub CLI
$ gh skill install alsk1992/CloddsBot betfair --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/betfair .claude/skills/betfair && 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
betfair
GitHub stars
3k
Token cost
~736 tokens
SKILL.md length
215 words
Files
2
Skills in repo
116
Repo updated
First seen
Licence
MIT

At a glance

Betfair Exchange sports betting and trading. An agent skill from alsk1992/CloddsBot.

  • Works in 4 steps: Odds Format: Betfair uses decimal odds… → Minimum Stake: Usually £2/€2/$2 → Back vs Lay: Back = betting FOR, Lay =… → …
  • Tasks that involve Trading and backtesting
  • SKILL.md covers Quick Start, Commands, Configuration and Features, plus 3 more sections
  • Runs TypeScript scripts from its folder; needs BETFAIR_APP_KEY and BETFAIR_SESSION_TOKEN

What it does

Betfair is an agent skill from alsk1992/CloddsBot. Betfair Exchange sports betting and trading

Its SKILL.md is about 740 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. 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

  • “/betfair”

Requirements

  • Node.js
  • A credential in BETFAIR_APP_KEY
  • A credential in BETFAIR_SESSION_TOKEN

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Odds Format: Betfair uses decimal odds (2.0 = evens, 3.0 = 2/1)
  2. Minimum Stake: Usually £2/€2/$2
  3. Back vs Lay: Back = betting FOR, Lay = betting AGAINST
  4. Liability: Lay stake = liability / (odds - 1)

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

    Links to these hosts (documentation or services it may open):

    • betfair.com
    • docs.developer.betfair.com

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

  • Credentials

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

    • BETFAIR_APP_KEY
    • BETFAIR_SESSION_TOKEN
    • BETFAIR_PASSWORD

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

Context cost

Betfair loads about 736 tokens when it runs. Until then it costs about 13 tokens; SKILL.md has 215 words of instructions outside code blocks.

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

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). 215 words, ~736 tokens.

Download SKILL.mdSave it as .claude/skills/betfair/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
betfair
description
Betfair Exchange sports betting and trading
emoji
🏇
commands
/bf
gates.envs
BETFAIR_APP_KEY

Betfair Exchange

Full integration with Betfair Exchange, the world's largest sports betting exchange. Trade sports markets using back/lay orders.

Quick Start

bash
# Set credentials
export BETFAIR_APP_KEY="your-app-key"
export BETFAIR_SESSION_TOKEN="your-session-token"

# Search markets
/bf markets football

# Get market prices
/bf prices 1.234567890

# Place back order (bet FOR outcome)
/bf back 1.234567890 12345678 2.5 10

# Place lay order (bet AGAINST outcome)
/bf lay 1.234567890 12345678 2.5 10

Commands

Market Data
CommandDescription
/bf markets [query]Search markets
/bf market <id>Get market details
/bf prices <marketId>Current prices and volumes
/bf book <marketId> <selectionId>Show orderbook
Trading
CommandDescription
/bf back <marketId> <selectionId> <odds> <stake>Place back order
/bf lay <marketId> <selectionId> <odds> <stake>Place lay order
/bf cancel <marketId> <betId>Cancel order
/bf cancelall [marketId]Cancel all orders
/bf orders [marketId]List open orders

Examples:

bash
/bf back 1.234 5678 2.0 10    # Back at 2.0 odds, £10 stake
/bf lay 1.234 5678 2.1 10     # Lay at 2.1 odds, £10 liability
/bf cancel 1.234 abc123       # Cancel specific order
Account
CommandDescription
/bf balanceCheck account balance
/bf positionsView open positions

Configuration

bash
# Required
export BETFAIR_APP_KEY="your-app-key"

# Either session token or username/password
export BETFAIR_SESSION_TOKEN="your-session-token"

# Or login credentials
export BETFAIR_USERNAME="your-username"
export BETFAIR_PASSWORD="your-password"

Features

  • Back/Lay Trading - Trade both sides of markets
  • Live Streaming - Real-time price updates via WebSocket
  • Sports Coverage - Football, tennis, horse racing, politics, and more
  • Low Fees - Exchange model with 2-5% commission
  • Deep Liquidity - World's largest betting exchange

Event Types

SportIDExample Query
Soccer1/bf markets champions league
Tennis2/bf markets wimbledon
Horse Racing7/bf markets ascot
Politics2378961/bf markets election
Basketball7522/bf markets nba

Trading Notes

  1. Odds Format: Betfair uses decimal odds (2.0 = evens, 3.0 = 2/1)
  2. Minimum Stake: Usually £2/€2/$2
  3. Back vs Lay: Back = betting FOR, Lay = betting AGAINST
  4. Liability: Lay stake = liability / (odds - 1)

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/betfair of alsk1992/CloddsBot.

  • SKILL.md
  • index.ts

Open the folder on GitHubat commit c930628

Compare with similar skills

Betfair 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.

Betfair compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Betfair this skillalsk1992/CloddsBot3k—~736Automated safety check: PassMIT
Tushare Datazillionare/zillionare3222 repos~2.3kAutomated safety check: PassNone
Tradingview MCPatilaahmettaner/tradingview-mcp5k—~1.3kAutomated safety check: PassMIT
Digital Oraclekomako-workshop/digital-oracle878—~5.9kAutomated safety check: PassMIT
Polyclawchainstacklabs/polyclaw3591 repos~2kAutomated safety check: PassApache-2.0
Markdownfacioquo/stock-indicators-dotnet1.2k—~812Automated safety check: PassApache-2.0

Similar skills

  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    322 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    5k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Digital Oracle

    komako-workshop/digital-oracle

    Answer prediction questions using market trading data, not opinions.

    878 GitHub stars~5.9k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Polyclaw

    chainstacklabs/polyclaw

    Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.

    359 GitHub starsUsed in 1 repo~2k tokens
    Business, Finance & HRAuto-check passed
  • Markdown

    facioquo/stock-indicators-dotnet

    Format and lint Markdown in this repository against GitHub Flavored Markdown and its markdownlint-cli2 configuration — headers, lists, code fences, callouts (VitePress containers on docs-site pages…

    1.2k GitHub stars~812 tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Openmobius Skill

    MobiusQuant/OpenMobius-skill

    Provides multi-school trading Q&A, chart/OHLCV analysis, annotation, and fresh-market workflows covering ICT/SMC, ChanLun, Wyckoff, Price Action, Order Flow, VSA, and Elliott Wave.

    697 GitHub stars~7.2k tokensUpdated 1 mo 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.

    3k GitHub starsUsed in 3 repos~1.2k tokens
    Auto-check passed
  • AI Strategy

    alsk1992/CloddsBot

    AI Strategy - natural language to trades. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~670 tokensUpdated 8 days ago
    Auto-check passed
  • Alerts

    alsk1992/CloddsBot

    Create and manage price alerts for prediction markets. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~460 tokensUpdated 8 days ago
    Auto-check passed
  • Analytics

    alsk1992/CloddsBot

    Performance attribution, trade analytics, and strategy optimization

    3k GitHub stars~1.6k tokensUpdated 8 days ago
    Auto-check passed
  • Arbitrage

    alsk1992/CloddsBot

    Automated cross-platform arbitrage detection and monitoring. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~1.7k tokensUpdated 8 days ago
    Auto-check passed
  • Auto Reply

    alsk1992/CloddsBot

    Automatic response rules, patterns, and scheduled messages. An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~1.5k tokensUpdated 8 days ago
    Auto-check passed

Questions about Betfair

What does Betfair do?

Betfair Exchange sports betting and trading. An agent skill from alsk1992/CloddsBot. Betfair is an agent skill from alsk1992/CloddsBot.

When should I use Betfair?

Betfair fits situations like: tasks that involve Trading and backtesting.

How do I install Betfair in Claude Code?

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

How do I install Betfair in Codex?

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

Can I use Betfair 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 betfair -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/betfair, .gemini/skills/betfair, .github/skills/betfair and .opencode/skills/betfair in your project.

What does Betfair need to run?

Going by SKILL.md and its folder, Betfair needs TypeScript for the scripts in its folder and credentials named BETFAIR_APP_KEY, BETFAIR_SESSION_TOKEN and BETFAIR_PASSWORD. Our summary lists: Node.js; A credential in BETFAIR_APP_KEY; A credential in BETFAIR_SESSION_TOKEN.

Does Betfair access the network?

SKILL.md names 2 domains. As links in the text: betfair.com and docs.developer.betfair.com. This is read from the text; nothing was executed.

Is Betfair 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 Betfair use?

Betfair 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 Betfair use?

About 736 tokens (SKILL.md is roughly 2.9k 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 Betfair?

Skills that share tags, products or a category with Betfair: Tushare Data (zillionare/zillionare, 322 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Digital Oracle (komako-workshop/digital-oracle, 878 stars) and Polyclaw (chainstacklabs/polyclaw, 359 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Betfair?

alsk1992 (a GitHub user) maintains it in alsk1992/CloddsBot, which has 2,951 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.