Skip to main content

crewai-ceki

CrewAI toolkit for Ceki — drive a real Chrome session from your CrewAI agent.

Killer combo. CrewAI's structured planning + Ceki's profile export = browser sessions that remember themselves across runs. Log in once, your crew walks straight into the dashboard on the next run — no cookies in your code, no second login.

Install

pip install crewai-ceki

The squat alias ceki-crewai is reserved by the same project and depends on crewai-ceki — both resolve to the same symbols.

Architecture

Variant C — structural toolkit. Eleven crewai.tools.BaseTool subclasses that the CrewAI agent's own LLM plans across:

Tool What it does
ceki_rent_browser Rent a real Chrome session and return its session_id.
ceki_navigate Open a URL.
ceki_click Click at viewport coordinates. Mouse jitter ON by default.
ceki_type Type into the focused element. Cadence + jitter ON by default.
ceki_scroll Scroll by delta_y pixels.
ceki_screenshot PNG of the current viewport as base64.
ceki_snapshot Screenshot + drained chat messages from the provider.
ceki_chat_send Send a chat message to the human provider (captcha / OTP).
ceki_stop End the session — always call this when done.
ceki_export_profile Killer: export cookies/storage/fingerprint to disk.
ceki_restore_profile Killer: restore a saved profile into a fresh rent.

There is no server-side NL endpoint and no LLM lives inside this package — your CrewAI agent's own model does the planning.

Quick start

import os
os.environ["CEKI_API_KEY"] = "your_ceki_key"   # https://ceki.me dashboard

from crewai import Agent, Task, Crew
from crewai_ceki import CekiCrewaiToolkit

toolkit = CekiCrewaiToolkit(default_rent={"schedule_id": 4242})

browser_agent = Agent(
    role="Web Operator",
    goal="Drive the rented browser to complete the task.",
    backstory=(
        "You operate a real Chrome session via the ceki_* tools. After a "
        "successful login, ALWAYS call ceki_export_profile so future runs "
        "can skip the login. On a fresh rent for a site you previously "
        "logged into, ALWAYS try ceki_restore_profile BEFORE navigating."
    ),
    tools=toolkit.get_tools(),
)

task = Task(
    description="Open https://example.com and report the page title.",
    expected_output="The page title as a string.",
    agent=browser_agent,
)

try:
    Crew(agents=[browser_agent], tasks=[task]).kickoff()
finally:
    toolkit.close()

The killer combo — persistent profiles

Tell your agent in its backstory:

After a successful login, always call ceki_export_profile.
On a fresh rent for a previously-logged-in site, always call
ceki_restore_profile before navigating.

That is the entire setup. Now every login the crew performs is durable:

# Run A — crew logs into your.example.com, then:
ceki_export_profile(session_id, profile_name="your-example")
# → JSON written to ~/.cache/ceki-crewai/profiles/your-example.json

# Process restarts. The file survives.

# Run B — fresh rent on a new browser:
ceki_restore_profile(session_id, profile_name="your-example")
# → cookies, localStorage, sessionStorage, fingerprint all restored
ceki_navigate(session_id, "https://your.example.com/dashboard")
# → already authenticated

By default profiles live under ~/.cache/ceki-crewai/profiles/. Override with:

from pathlib import Path
toolkit = CekiCrewaiToolkit(
    default_rent={"schedule_id": 4242},
    profile_dir=Path("/var/lib/myapp/ceki-profiles"),
)

Or override via the CEKI_PROFILE_DIR environment variable. If you'd rather keep the JSON in your own store, pass it via the payload argument to either tool and the toolkit skips the disk read/write.

See examples/persistent_session.py for an end-to-end runnable demo.

Use responsibly

Use only on sites you own or have authorization to operate on (your own apps, your own dashboards, public data within site Terms of Service, accessibility audits you're responsible for).

License

MIT.

Metadata

Release files for crewai-ceki 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-ceki 0.1.0
File Size Uploaded
crewai_ceki-0.1.0.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crewai-ceki 0.1.0
File Interpreter ABI Platform
crewai_ceki-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.1 kB

Release files / crewai_ceki-0.1.0.tar.gz

Download URL crewai_ceki-0.1.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
59a3e8a9680fd0fe358f3081856cbae9d8f75974f5ec813bde118dd2d83423e4
BLAKE2b-256 checksum
How to use checksums
277b60fe236fbc13c44105ea563c3e99f84db888fea7e94b9c5603940c850842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / crewai_ceki-0.1.0-py3-none-any.whl

Download URL crewai_ceki-0.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4510d971b8addd71f256250754f261e756ef6d858a6425cfe4ef52a320e10299
BLAKE2b-256 checksum
How to use checksums
38177d47e903e42a5ebe0d15052d5c39b7f18c4335717f80e0e0f370c1fb508d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page