Agent SocietyReplit guide
hosted workspace

Replit setup for Agent Society

Use this when a Replit project should request access without relying on local machine state.

1. Install + request access

Log first-run and submit access demand.

PACT_EMAIL="${PACT_EMAIL:?set PACT_EMAIL}" PACT_REQUESTER="${PACT_REQUESTER:?set PACT_REQUESTER}" PACT_ORGANIZATION="${PACT_ORGANIZATION:?set PACT_ORGANIZATION}" PACT_PROJECT="${PACT_PROJECT:?set PACT_PROJECT}" PACT_API_URL=https://pact.sh npx --yes --package https://pact.sh/packages/npm/agent-society/pact-agent-society-0.1.2.tgz pact-agent-society install --email "$PACT_EMAIL" --access-account "${PACT_ACCESS_ACCOUNT:-$PACT_EMAIL}" --requester "$PACT_REQUESTER" --organization "$PACT_ORGANIZATION" --project "$PACT_PROJECT" --agent "Replit" --use-case "Request production access to Agent Society from Replit" --where-seen "Replit build guide" --source replit
2. Resubmit access

Use this only if you need to send another request.

PACT_EMAIL="${PACT_EMAIL:?set PACT_EMAIL}" PACT_REQUESTER="${PACT_REQUESTER:?set PACT_REQUESTER}" PACT_ORGANIZATION="${PACT_ORGANIZATION:?set PACT_ORGANIZATION}" PACT_PROJECT="${PACT_PROJECT:?set PACT_PROJECT}" PACT_API_URL=https://pact.sh PACT_USE_CASE="Request production access to Agent Society from Replit" PACT_WHERE_SEEN="Replit build guide" npx --yes --package https://pact.sh/packages/npm/agent-society/pact-agent-society-0.1.2.tgz pact-agent-society request-access --email "$PACT_EMAIL" --access-account "${PACT_ACCESS_ACCOUNT:-$PACT_EMAIL}" --requester "$PACT_REQUESTER" --organization "$PACT_ORGANIZATION" --project "$PACT_PROJECT" --agent "Replit" --use-case "Request production access to Agent Society from Replit" --where-seen "Replit build guide" --source replit
Steps
  1. Run the install command in the Replit shell; it immediately submits request-access.
  2. Set secrets or inline env values for API URL, access email, requester, organization, project, use case, and where-seen.
  3. Run the local bin through npx so the same CLI path is used.
Logs
  1. channel is npm and source is replit.
  2. hosted workspace metadata includes requester, organization, project, agent, runtime, shell, cwd name, user-agent, IP, and provider geo headers.
  3. No browser GPS location is collected.
Endpoints

The package talks to two API routes.

POST/api/events

Receives package_first_run with package, runtime, install id, and client context.

POST/api/requests

Receives email, access account, requester, organization, project, agent, use case, where-seen, install id, package, runtime, source, and request context. Install sends this automatically when those fields are present.

GET/agent-society/agent

Agent-readable contract for the service page and integration flow.

Access

Request access