MaritimemaritimeDocumentation
Dashboard

CrewAI Guide

Deploy CrewAI agents on Maritime.

Project Structure

my-crewai-agent/
├── maritime.toml
├── requirements.txt
├── crew.py
└── agents/
    ├── researcher.py
    └── writer.py

Configuration

maritime.toml
[agent]
name = "my-crew"
framework = "crewai"
tier = "extended"

[triggers]
webhook = true

Entry Point

Maritime looks for a crew.py file with a run() function:

crew.py
from crewai import Agent, Task, Crew

def run(payload: dict) -> dict:
    researcher = Agent(
        role="Researcher",
        goal="Research the given topic thoroughly",
        backstory="You are an expert researcher.",
    )

    task = Task(
        description=f"Research: {payload.get('topic', 'AI agents')}",
        agent=researcher,
    )

    crew = Crew(agents=[researcher], tasks=[task])
    result = crew.kickoff()

    return {"result": str(result)}

Deploy

maritime deploy
# ✓ Agent deployed at maritime.sh/my-crew