# Company and Account

Source: https://docs.autessa.com/docs/cli/company

> Read your identity and permissions, manage company members and roles, watch usage against limits, and read billing — balance, budgets, invoices and per-task costs.

# Company and Account

Four namespaces covering who you are and what your company is spending: `user` reads your own identity and scope, `company` administers members and roles, `billing` exposes the whole self-service billing picture, and `payments` is Autessa Payments (covered in [Payments](/docs/cli/payments.md)). Reads are broadly open to members; the writes need the matching permission.

## Who am I?

The first command to run when a script misbehaves or a permission error surprises you:

```bash
autessa user role
```

```json
{
  "permissions": [
    { "permission": "AGENTIC_WORKFLOW", "id": "lhQ63Oc2DbO" },
    { "permission": "AUTESSADB", "id": "1NL5iAqgaBP" },
    { "permission": "API_KEY", "id": "zfDFbdhOrxr" },
    { "permission": "SCHEDULED_EVENTS", "id": "Ka62l7LpFzf" },
    { "permission": "APP_BUILDER", "id": "V7ScwapLsCt" },
    { "permission": "SCRIPTING", "id": "oj5g1rED8uP" }
  ]
}
```

It returns your identity, your **effective permissions in the active company**, the active company (`currentScope`), and every company you can access (`availableCompanies`). When a command fails with a permission error, this tells you whether you lack the permission or are simply scoped to the wrong company.

> To change which company you are working in, sign in again with that company selected — `autessa login`, or a separate [profile](/docs/cli/install.md) per tenant. Setting a default scope is web-app-only, and everything else in the `user` namespace is poweruser API-key management, also done in the browser. See [Poweruser keys](/docs/guide/api-management/poweruser-keys.md).

## Company

Everything here acts on your **active company** except `create`, which makes a new one you own.

### Members and roles

```bash
autessa company roles
autessa company members
```

`roles` lists the six built-in roles plus any custom ones, with their ids. `members` lists each member and their effective permissions. You need role ids before you can invite or reassign:

```bash
autessa company invite \
  --email "teammate@example.com" \
  --roleIds '["<roleId>","<roleId>"]'

autessa company set-member-roles --userId <id> --roleIds '["<roleId>"]'

autessa company remove-member --userId <id>
```

> `set-member-roles` **replaces** the member's roles rather than adding to them. Read `company members` first and send the full intended set, or you will silently strip access.

Administration needs the manage-team-members permission; reads are open to members.

### Usage against limits

```bash
autessa company usage-status
```

Reports current usage against every limit dimension — entities, executions, LLM and vibecode credits, phone, storage, semantic search, browser, and AI-task metering. This is the command to poll before a bulk job, and the one to check first when something starts failing for no obvious reason.

### Creating and renaming

```bash
autessa company create --json '{...}'
autessa company update --json '{...}'
```

`create` makes a new company owned by you, optionally making it your default scope. `update` renames the current one. Ownership transfer, billing setup and SSO are web-app-only.

### Speech vocabulary

The company's speech vocabulary helps speech recognition hear your names, products, and terms correctly on live AI calls, in voice conversations in the browser, and when Call Redaction cleans your company's call recordings. It has two parts: `terms`, the words to listen for, and `replacements`, corrections from what it hears to what it means.

```bash
autessa company speech-vocabulary-get
```

```json
{
  "speechVocabulary": {
    "terms": ["Autessa", "Cedar Bay", "FirstPass"],
    "replacements": { "auto essa": "Autessa" }
  }
}
```

```bash
autessa company speech-vocabulary-update --speechVocabulary '{
  "terms": ["Autessa", "Cedar Bay", "FirstPass", "Dr. Okonkwo"],
  "replacements": { "auto essa": "Autessa", "first pass": "FirstPass" }
}'
```

`update` **replaces** the whole vocabulary, so read it first and send the full list. Send `{}` or empty lists to clear it. Up to 500 terms of 2 to 60 characters each (duplicates are dropped), and up to 500 replacements, each heard text 2 to 60 characters and meaning 1 to 60. Anyone in the company can read the vocabulary; changing it needs the manage-team-members permission, and a value that breaks a limit is refused with a plain sentence saying which. Words for just one phone number go in that number's call settings instead (`speech.vocabulary`; see [Phone](/docs/cli/phone.md#how-to-set-recording-transcripts-and-limits)). How the vocabulary is used is in [Speech vocabulary](/docs/guide/agentic/phone-numbers.md#speech-vocabulary).

## Billing

Money is **always in cents**. Reads are open to members; address and budget writes need the billing permission.

### Where the money stands

```bash
autessa billing account          # prepaid balance, payment state, recent ledger entries
autessa billing plan             # commitment, remaining credit, resolved per-task rate, next invoice date
autessa billing budget           # hard caps, soft warning target, accrued usage this period
autessa billing invoices         # newest first
autessa billing invoice-preview  # this period's invoice computed live, persisting nothing
```

`invoice-preview` is the useful one mid-month: it runs the same math as month-end without writing anything, so you can see where the period is heading.

### Per-task drill-down

```bash
autessa billing tasks --period 202609 --page 0 --pageSize 50
autessa billing task --json '{...}'
```

`tasks` lists individual AI-task rows for a period (`YYYYMM`, defaulting to the current one). `task` returns the itemized receipt for one — metadata, token/voice/RAG usage, per-component cost at the resolved rate, and whether the amount is frozen because it has been invoiced or is still a live estimate.

### Setting budgets

```bash
autessa billing set-budget \
  --userHardBudgetCents 50000 \
  --userSoftWarnPercents '[50,80,95]' \
  --budgetNotifyEmails '["finance@example.com"]'

autessa billing set-address --json '{...}'
```

A hard cap stops spend; a soft target only warns. `userSoftWarnPercents` are percentages of the cap at which warnings fire, and up to five extra recipients can be warned alongside the owner.

> Paying an invoice, prepaying, changing your plan commitment, configuring auto-evaluation, and adding or removing payment methods are deliberately **not** in the CLI — they are done on the billing page in the web app. Reading all of it, including `sources` and `payment-config`, is available here.

## Payments

Autessa Payments: setup status, sales tax, customers, invoices, templates, recurring invoices, plans, subscriptions, and branding. Verifying your business and linking a payout bank stay in the web app. See [Payments](/docs/cli/payments.md) for the full walkthrough.

## Related

- [Authentication](/docs/guide/authentication.md)
- [Team](/docs/guide/company/team.md) and [Usage limits](/docs/guide/company/usage-limits.md)
- [Billing](/docs/guide/company/billing.md)
- [API access](/docs/cli/api-access.md)
- [Install and sign in](/docs/cli/install.md) — profiles, one per tenant

