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-capsolverpackage.
The demo wraps shared CapSolver operations with CrewAI's @tool decorator. It does not copy SDK behavior or maintain another adapter version.
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.txtExport the values in .env.example, then run python examples/quickstart.py.
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.
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
Use these tools only in lawful, user-authorized workflows that respect target-site terms. Never commit secrets or private target data.
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.