> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pensar.dev/apex/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pensar.dev/apex/_mcp/server.

# /credits

> Check your credit balance and purchase credits for Pensar managed inference

## Overview

The `/credits` command displays your current workspace credit balance and provides a quick way to open the Console billing page to purchase more credits.

## Usage

```bash
/credits
```

Alias: `/buy`

## Prerequisites

You must be connected to Pensar Console via the [`/login`](/apex/tui-slash-commands/login) command before using `/credits`. If you're not authenticated, Apex will prompt you to connect first.

## What You'll See

When you run `/credits`, Apex:

1. Validates your authentication token
2. Fetches your current workspace credit balance from the Pensar gateway
3. Displays the balance along with your connected workspace name

## Purchasing Credits

From the `/credits` screen, press the indicated key to open the Console credits page in your browser. This takes you directly to the purchase flow where you can:

* **Buy credits instantly** — choose from $10, $30, $50, $100, or enter a custom amount
* **Start a monthly subscription** — receive credits automatically each billing cycle
* **Configure auto-reload** — automatically top up when your balance drops below a threshold

For full details on credit purchases, auto-reload, and billing management, see the [Console Billing & Usage](/apex/console/features/billing) documentation.

## How Credits Work

Credits are a **pre-paid balance** (denominated in USD) stored at the workspace level in Pensar Console. When Apex uses Pensar managed inference, each AI request deducts from this balance based on the model used and tokens consumed.

| Detail               | Value                                                                  |
| -------------------- | ---------------------------------------------------------------------- |
| **Billing category** | Apex Inference                                                         |
| **Pricing**          | Base model cost + 15% Pensar markup                                    |
| **Tracking**         | Per-user — your requests are attributed to your authenticated identity |
| **Pre-flight check** | Requests are rejected if credits are insufficient                      |

> **Info**
>
> Credits are shared across all billing categories in your workspace (Apex Inference and Continuous Pentesting). Monitor usage per category from **Settings > Usage** in Console.

## Troubleshooting

#### 'Not authenticated' error

Run [`/login`](/apex/tui-slash-commands/login) first to connect Apex to your Console workspace.

#### Balance shows \$0.00

Open the Console billing page to purchase credits. You can also enable auto-reload to prevent your balance from reaching zero. See [Console Billing & Usage](/apex/console/features/billing).

#### Browser doesn't open

Copy the URL displayed in the terminal and open it manually in your browser.

## Related Commands

#### [/login](/apex/tui-slash-commands/login)

Connect to Pensar Console for managed inference.

#### [/providers](/apex/tui-slash-commands/providers)

Configure direct API key access as an alternative to managed inference.

#### [/pentest](/apex/tui-slash-commands/pentest)

Launch a penetration test.