# Documentation

> How to use Porticol, run a team server, and reach Porticol from the command line and the REST API.

Canonical: https://porticol.app/docs/

How to use Porticol, run a team server, and reach Porticol from the command line and the REST API.

## Start here

- [**Getting started** Install Porticol, send a first request, save it to a collection and find your way around.](https://porticol.app/docs/getting-started)
- [**AI agents** Install Porticol, connect Claude Code, Cursor, Codex or VS Code from the start screen or by hand, and let the agent call your APIs through Guard with no account.](https://porticol.app/docs/ai-agents)
- [**Moving from Postman** Bring Postman collections, environments and pm scripts into Porticol, run them in CI, and give your coding agents the same collections.](https://porticol.app/docs/moving-from-postman)
- [**Questions and answers** Short answers about accounts, where data goes, Postman collections, CI, teams and getting help.](https://porticol.app/docs/faq)

## Guides

- [**How to give Claude Code access to your API without giving it your keys** Connect Claude Code to your API through Porticol, keep the key in the keychain, and hold a risky call for approval.](https://porticol.app/docs/guides/claude-code-api-access)
- [**How to give Cursor access to your API without giving it your keys** Connect Cursor to your API through Porticol, keep the key out of the agent, and hold a risky call for approval.](https://porticol.app/docs/guides/cursor-api-access)
- [**How to give Codex access to your API without giving it your keys** Connect Codex to your API through Porticol, keep the key out of the agent, and hold a risky call for approval.](https://porticol.app/docs/guides/codex-api-access)
- [**How to stop a coding agent deleting production** Put one policy over Claude Code, Cursor and Codex, hold the DELETE that would hit production, and keep the record.](https://porticol.app/docs/guides/stop-agent-deleting-production)
- [**Export the Guard record** Check the Guard record's chain and export it, with the columns a CERT-In request asks for.](https://porticol.app/docs/guides/guard-log-export)

## Posts

- [**How Porticol stops an agent deleting production** How a held DELETE works end to end in Porticol Guard: the policy match, the approval bound to the request hash, the card, the retry and the log entry, with the limits.](https://porticol.app/docs/posts/stopping-an-agent-deleting-production)

## Working in Porticol

- [**The workbench** The sidebar, tabs, request editor, response viewer and history, and how to arrange, theme and import into them.](https://porticol.app/docs/workbench)
- [**Sending requests** Environments, variables, secrets, scripts and tests, and what happens each time you send.](https://porticol.app/docs/sending-requests)
- [**Auth and transport** Every auth scheme, and the timeout, redirect, TLS, certificate, proxy and retry settings of a request.](https://porticol.app/docs/auth-and-transport)
- [**Protocols** GraphQL, WebSocket, server-sent events, gRPC, MQTT, SOAP, TCP and UDP requests, kept in collections beside HTTP ones.](https://porticol.app/docs/protocols)
- [**Tools** The cookie jar, code snippets in 14 languages, and exporting collections and environments.](https://porticol.app/docs/tools)
- [**Your data** Where Porticol keeps your data, how to back it up and restore it, and what crash and usage reports hold.](https://porticol.app/docs/your-data)

## Testing and automation

- [**Collection runner** Run a collection or a folder with an environment, a data file and as many iterations as you need, and keep and export the results.](https://porticol.app/docs/collection-runner)
- [**Mock servers** Start a mock server on your computer from a collection's examples or an OpenAPI document.](https://porticol.app/docs/mock-servers)
- [**Automation** Performance runs, flows, monitors that run a collection on a schedule and running collections in CI.](https://porticol.app/docs/automation)
- [**API design** Lint and compare OpenAPI documents, and keep collections in Git.](https://porticol.app/docs/api-design)

## Working as a team

- [**Sync** Sign in to Porticol Cloud or a team server, switch workspaces, and sync collections and environments between your devices and your team.](https://porticol.app/docs/sync)
- [**Collaboration** Share collections and environments with members, groups or the whole workspace.](https://porticol.app/docs/collaboration)
- [**Shared secrets** Share secret values with your team, encrypted on your devices so the server holds nothing it can open, and keep a recovery key.](https://porticol.app/docs/shared-secrets)
- [**Account portal** The account portal at cloud.porticol.app: create an account, choose a plan, invite people, and manage an organisation.](https://porticol.app/docs/account-portal)

## Administration

- [**Plans and billing** Free, Team and Business, the 14-day trial, monthly or yearly billing through Dodo Payments, and what happens when a trial or plan ends.](https://porticol.app/docs/plans-and-billing)
- [**Identity and access** Members, groups and roles, single sign-on and the sign-in policy for an organisation.](https://porticol.app/docs/identity)
- [**Governance** The audit log, SIEM export, retention, exporting or deleting an organisation, usage, billing and the team server licence.](https://porticol.app/docs/governance)
- [**Managed deployment** How IT presets the server, single sign-on, exporting, reports and the update channel on the computers it manages.](https://porticol.app/docs/it-admins/managed-deployment)
- [**Guard gateway** Run Porticol Guard's team gateway on your own server, so production keys stay on the server and never on a laptop.](https://porticol.app/docs/guides/guard-gateway)
- [**Security whitepaper** How Porticol protects requests, secrets and accounts on the desktop, in the account portal and on the server, and what it leaves out of scope.](https://porticol.app/docs/security)

## Reference

- [**Command line** Every command, option and exit code of porticol-cli, the command-line runner.](https://porticol.app/docs/cli)
- [**MCP** Let an MCP client search a workspace, read requests, list environments, and send and run requests through Porticol.](https://porticol.app/docs/mcp)
- [**REST API** Every operation of the published REST API, the scope each needs and what each answers.](https://porticol.app/docs/api)

## Command line

- [**Run** porticol-cli run: send a collection's requests, once or per data row.](https://porticol.app/docs/cli/run)
- [**Perf** porticol-cli perf: hold a collection under load and check its thresholds.](https://porticol.app/docs/cli/perf)
- [**Flow** porticol-cli flow: run a flow the app exports.](https://porticol.app/docs/cli/flow)
- [**Diff** porticol-cli diff: compare two OpenAPI documents and fail on what breaks.](https://porticol.app/docs/cli/diff)
- [**Lint** porticol-cli lint: check an OpenAPI document against the style rules.](https://porticol.app/docs/cli/lint)
- [**Guard** porticol-cli guard: find keys, serve Guard's proxy and hooks, verify or export the record.](https://porticol.app/docs/cli/guard)
- [**Guard proxy** porticol-cli guard proxy: serve Guard's local proxy for a sandboxed agent.](https://porticol.app/docs/cli/guard-proxy)
- [**Guard hook** porticol-cli guard hook: answer a coding agent's hook from the Guard policy.](https://porticol.app/docs/cli/guard-hook)
- [**Agent** porticol-cli agent: print what a runtime needs to trust Guard's local proxy.](https://porticol.app/docs/cli/agent)
- [**Mcp** porticol-cli mcp: serve a workspace to an agent over MCP on standard input.](https://porticol.app/docs/cli/mcp)
- [**Approve** porticol-cli approve: allow a call an agent is waiting on, after typing its code.](https://porticol.app/docs/cli/approve)
- [**Deny** porticol-cli deny: deny a call an agent is waiting on.](https://porticol.app/docs/cli/deny)
- [**Login** porticol-cli login: sign in and keep a token for --server.](https://porticol.app/docs/cli/login)
- [**Logout** porticol-cli logout: forget the token this machine keeps.](https://porticol.app/docs/cli/logout)
- [**Whoami** porticol-cli whoami: say which server the kept token is for.](https://porticol.app/docs/cli/whoami)
- [**Collections** porticol-cli collections: list the collections a token can reach.](https://porticol.app/docs/cli/collections)
- [**Environments** porticol-cli environments: list the environments a token can reach.](https://porticol.app/docs/cli/environments)
- [**Init** porticol-cli init: write a starter collection, environment and workflow.](https://porticol.app/docs/cli/init)
- [**Completion** porticol-cli completion: print a shell completion script.](https://porticol.app/docs/cli/completion)
- [**Help** porticol-cli help: this text, or one command's part of it.](https://porticol.app/docs/cli/help)
- [**Version** porticol-cli version: the version of this binary and its platform.](https://porticol.app/docs/cli/version)
