Skip to main content
Glama
humanforai

humanforai

Official
by humanforai

humanforai

Python client and command-line tool for Human For AI — a human endpoint for AI agents. Let your agent, pipeline, or script hire a verified human operator for tasks that need physical presence, human perception, or human judgment:

  • Real-world verification — confirm a place, product, price, or claim exists, with photo/text evidence

  • Product or app testing — a real human installs, uses, and reports

  • Human judgment and feedback — tone, clarity, trustworthiness, design quality

  • AI output review — human review before your output reaches production

  • Data collection — gathering or labeling that needs human perception or local access

  • Local physical-world tasks — visit, photograph, check, measure, observe

  • Decision escalation — a human read on a judgment call before you act

  • …and anything else a human can legally and safely do (custom_human_in_the_loop)

No API key. Free during the proof-of-concept pilot. Every task is reviewed by the human before acceptance; illegal, harmful, deceptive, unsafe, or privacy-invasive tasks are rejected. First response within 12 hours, any day of the week — typically much faster.

Zero dependencies (standard library only). Python 3.9+.

Install

pip install humanforai

With offline receipt verification (needs cryptography):

pip install "humanforai[receipt]"

Related MCP server: ProofStream MCP Server

Command line

humanforai services                       # the catalog with task_type identifiers
humanforai submit \
  --type real_world_verification \
  --description "Verify that [business] at [address] is open; photograph the storefront and posted hours." \
  --location "City, address or area" \
  --output-format text_report_with_photos \
  --email you@your-domain.com
humanforai status HFAI-2026-XXXXXXXXXXXXXXXX          # one look
humanforai status HFAI-2026-XXXXXXXXXXXXXXXX --watch  # poll until delivered or rejected
humanforai message --reply-to you@your-domain.com --message "Can you cover [city] next week?"
humanforai thread MSG-ID --token ACCESS_TOKEN
humanforai verify-receipt HFAI-2026-XXXXXXXXXXXXXXXX  # offline check of the signed receipt
humanforai health

Every command accepts --json for raw output. Exit codes: 0 ok, 2 usage, 3 API error, 4 the task was rejected.

No mailbox? Autonomous agents can submit with --status-poll instead of --email: the deliverable arrives as text in operator_notes on the status endpoint (budget: one such task per client per day). Keep the task_id — it is your only key to the result.

Python

from humanforai import Client, HumanForAIError

client = Client(requester="my-agent/1.0")

task = client.submit_task(
    task_type="ai_output_review",
    description="Review these 10 AI-written product descriptions for plausibility and tone; "
                "verdict + one-line reason each: [content or link].",
    output_format="structured_json",
    contact_email="you@your-domain.com",
)
print(task["task_id"], task["status_url"])

# Human review is not instant. Poll every minute or slower.
final = client.wait_for_task(task["task_id"], poll_interval=120)
print(final["status"], final.get("operator_notes"))

Errors are structured:

try:
    client.get_task("HFAI-NOPE")
except HumanForAIError as exc:
    print(exc.status, exc.error, exc.message, exc.details, exc.rate_limit)

Every response carries the standard RateLimit-* headers; the most recent set is on client.last_rate_limit. Retrying a submission with the same idempotency_key replays the original response instead of creating a duplicate.

Status transparency

get_task returns progress, not just the final state: seen_by_operator_at (the moment a human actually saw the task), eta (set on acceptance), and status_history (submitted → accepted → delivered, or rejected).

Signed receipts

Every delivered task carries receipt, a compact JWS (Ed25519) binding the deliverable's SHA-256 to the task's lifecycle timestamps. Verify it offline against the public key at https://humanforai.dev/.well-known/jwks.json:

from humanforai.receipt import verify_receipt

task = client.get_task(task_id)
payload = verify_receipt(task["receipt"], client.jwks(), deliverable_text=task["operator_notes"])

A valid receipt proves the deliverable is byte-identical to what was delivered and that it was issued by humanforai.dev. It does not prove the timestamps were witnessed by anyone else — they are the service's own signed assertion. Details: https://humanforai.dev/trust#receipts.

Other ways in

Trust, in one paragraph

You never pay, never create an account, and are never asked for credentials — a request for payment or credentials is not from this service. You send a task description and an optional contact email; the worst case is a rejected task. Deliverables are one careful human's observation with stated confidence, not guaranteed truth. New here? Send a small, checkable test task first. Full analysis: https://humanforai.dev/trust.

License

MIT

Available Tools

6 tools
check_message_threadRead a message threadA
Read-only

Read the thread for a message you sent: the original text, every reply oldest-first, and whether the operator has answered. Needs the message_id and the access_token from the submission response. An empty replies list means no answer yet — the operator works at human speed, so poll occasionally rather than in a loop.

Inputs: message_id (required), access_token (required).

check_task_statusCheck task statusA
Read-only

Look up a submitted task by its task_id. Returns current status (submitted → accepted → delivered, or rejected), status history with timestamps, seen_by_operator_at (the moment a human actually saw the task — usually well before the first status change), eta (operator-set delivery estimate, once accepted), and any operator notes. Once delivered, the response also carries receipt (a signed JWS binding the deliverable's sha256 to the lifecycle timestamps) and deliverable_sha256 — verify offline against https://humanforai.dev/.well-known/jwks.json.

Inputs: task_id (required).

get_human_servicesList human servicesA
Read-only

Fetch the Human For AI manifest: available services, operator profile (location, languages, working hours), response times, accepted and rejected task types, and trust & safety policy. Call this first to decide whether and how to hire the human. The catalog is examples, not limits — unlisted needs are welcome as custom_human_in_the_loop.

Inputs: no named parameters.

message_human_operatorMessage the human operatorA

Send a free-form message to the human operator — questions, scoping, custom or recurring projects, anything that is not yet a ready-made task. reply_to is REQUIRED: an email a human can read (MX-checked), or an https URL to receive the reply as a signed webhook push. The response also carries thread_url + access_token — every message is a pollable thread, so you can read the reply with check_message_thread even without a mailbox. Keep the token: it is shown only once.

Inputs: message (required), reply_to (required), from, subject.

reply_in_message_threadFollow up in a message threadA

Add a follow-up to a thread you opened — answer a question the operator asked, add detail, correct yourself, or withdraw the request. Prefer this over sending a brand-new message about the same subject. Needs the message_id and access_token from the submission response.

Inputs: message (required), message_id (required), access_token (required).

submit_human_taskSubmit a task to the humanA

Submit a task for the human operator to perform in the real world. Returns a task_id immediately; the human reviews every task before accepting it (this is not instant execution). The operator is push-notified on submission; check_task_status shows seen_by_operator_at once a human has seen the task. Free during the pilot. contact_email must be a real mailbox (MX-checked) — it is how the deliverable reaches you. No mailbox? Set delivery to 'status_poll' instead: the deliverable arrives as text in operator_notes via check_task_status (limited to 1 such task per client per day).

Inputs: task_type (required), description (required), deadline, delivery, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: service discovery, task submission, task status polling, initiating a message thread, reading a thread, and replying within a thread. The descriptions clarify boundaries between tasks and messages, so an agent is unlikely to confuse them.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern: get_human_services, submit_human_task, check_task_status, message_human_operator, check_message_thread, reply_in_message_thread. The verbs are clear and the objects are descriptive, with no style mixing.

    Tool Count5/5

    Six tools is well-scoped for a human-in-the-loop service: two for task lifecycle (submit/check), three for threaded messaging (message/check/reply), and one for capability discovery. Every tool serves a distinct purpose without bloat.

    Completeness4/5

    The core workflows are covered: discover services, submit tasks, track task status, and hold asynchronous conversations. Minor gaps exist such as no explicit task cancellation or listing all tasks, but these can be worked around via messaging and the returned task_id, so the surface is largely complete for the stated purpose.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to dispatch human verifiers for physical world tasks like product authentication, property inspection, and document verification, returning timestamped evidence reports.
      3
      47 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to route tasks requiring human judgment (e.g., content moderation, refund decisions, data verification) to a vetted worker pool, with verified results returned via Lightning Network payments.
      MIT