# Use OrgX from an agent

Choose the path for the work you need. No account or payment is needed to
validate a portable receipt. A hosted workspace requires authorization.

## Start without an account

Install `@useorgx/agent-work-receipt` in a local project. Its schema, parser,
validator and integrity functions run locally and make no network calls.

```sh
npm install @useorgx/agent-work-receipt
```

Validate an existing receipt locally with the Wizard's `orgx` executable:

```sh
npx -y --package=@useorgx/wizard orgx verify ./receipt.json --json
```

Success means schema/reference conformance and the reported integrity checks.
It does not establish that the work is correct, the evidence is true, a signer
is trusted, or a human accepted the work. Inspect each check's status.

Optional public validation sends the receipt to OrgX. Send only data you are
authorized to disclose; remove credentials and private data first.

```sh
curl --fail-with-body https://useorgx.com/api/v1/agent-work-receipts/validate \
  -H 'Content-Type: application/json' \
  --data-binary @receipt.json
```

No Authorization header, account, card or browser is required. Requests are
limited to 256 KiB. This endpoint does not persist submissions. A validation
response with `valid: false` is a failure even if HTTP transport succeeded.
Use `issues[].path`, `code` and `message` to repair the document and retry.
Do not treat this route as hosted import or evidence verification.

## Connect an existing workspace

MCP endpoint: https://mcp.useorgx.com/mcp

Use the client's OAuth flow to sign in and approve workspace access. This is
a human confirmation path. Do not request or copy a dashboard key for MCP.
After connecting, call `orgx_bootstrap` and check the returned workspace,
granted scopes and visible tools before using workspace data.

For REST, create a workspace API key and provide it through a server-side
secret. Start with `GET /api/v1/me`, then `POST /api/v1/work` with a title and
an `Idempotency-Key`. Never put keys in URLs or receipts.

## Current boundary

OrgX does not document anonymous hosted workspace provisioning here. OAuth,
API-key setup and human account claiming must not be reported as hands-off
activation. Account-free receipt validation does not grant workspace access.

Contracts: https://useorgx.com/api/v1/openapi.yaml

Receipt guide: https://useorgx.com/agent-work-receipts

Full discovery index: https://useorgx.com/llms.txt
