Skip to content

Repository files navigation

CrewAI + CapSolver Agent examples

Demo repository CI License: ISC

Runnable CrewAI examples showing how an agent, task, or crew can call the official capsolver-agent executor.

This is an examples repository, not a separately released crewai-capsolver package.

Repository scope

The demo wraps shared CapSolver operations with CrewAI's @tool decorator. It does not copy SDK behavior or maintain another adapter version.

Quick start

git clone https://github.com/capsolver-ai/crewai-capsolver.git
cd crewai-capsolver
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

Export the values in .env.example, then run python examples/quickstart.py.

Key integration code

from capsolver_agent import create_executor
from crewai.tools import tool

capsolver = create_executor()

@tool("get_capsolver_balance")
def get_capsolver_balance() -> str:
    return str(asyncio.run(capsolver.execute("get_balance", {})))

See examples/quickstart.py for a complete Crew and two CapSolver tools.

Project layout

examples/quickstart.py   CrewAI agent, task, crew, and tools
requirements.txt         Shared SDK repositories plus CrewAI
tests/test_demo.py        Offline validation
.github/workflows/ci.yml  Demo checks

Documentation

Responsible use

Use these tools only in lawful, user-authorized workflows that respect target-site terms. Never commit secrets or private target data.

Contributing, support, and license

See CONTRIBUTING.md, SUPPORT.md, and SECURITY.md. Licensed under the ISC License.

CrewAI is a third-party project. This repository is maintained by CapSolver and is not affiliated with or endorsed by CrewAI.

About

Runnable CrewAI examples using the CapSolver Agent library.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages