---
title: "Turn the Bearly API and CLI on or off for your organization"
description: "How to allow or block API keys and the Bearly CLI for everyone in your Bearly organization from Bearly Platform, per group with policies, and sign out CLI devices."
canonical: "https://bearly.ai/docs/platform/api-and-cli-access/"
markdown: "https://bearly.ai/docs/platform/api-and-cli-access.md"
---

# Turn the Bearly API and CLI on or off for your organization

HTML: [https://bearly.ai/docs/platform/api-and-cli-access/](https://bearly.ai/docs/platform/api-and-cli-access/)

> How to allow or block API keys and the Bearly CLI for everyone in your Bearly organization from Bearly Platform, per group with policies, and sign out CLI devices.

Two switches at the top of **Policies** in [Bearly Platform](https://bearly.ai/docs/platform.md) decide whether people in your organization can call Bearly from code and sign in to the Bearly CLI. Only organization admins can change them.

## Turn a switch on or off



1. Open [Bearly Platform](https://platform.bearly.ai) and select **Policies**. **Access** reads "Turn Bearly API and CLI on or off for your organization."
2. Switch **Bearly API** or **Bearly CLI**.



| Switch | When it's on |
| --- | --- |
| **Bearly API** | "Members and service accounts can create API keys and call Bearly from their own code." |
| **Bearly CLI** | "Members can sign in to the Bearly CLI on their computers." |

Turning a switch on saves right away. Turning one off asks first:

- **Turn off the Bearly API?** Active API keys and service accounts stop working right away. Nothing is deleted; turn it back on to restore them.
- **Turn off the Bearly CLI?** Signed-in CLI devices stop working right away. Nothing is deleted; turn it back on to restore them.

Select **Turn off** to confirm or **Keep it on** to cancel. The two switches are separate: turning off one doesn't stop the other.

While the policy editor below has unsaved changes, the switches wait: "Save or discard your policy changes first."

## Turn them off for one group

The switches set your organization's default policy. The same two controls appear in the policy editor under **Access**, so a group's policy can turn the API or CLI off for that group only. See [Set policies](https://bearly.ai/docs/platform/policies.md#choose-which-features-members-can-use).

A member whose policy turns the API off doesn't see **API keys** in Bearly, and requests with their keys are refused with "Your organization's policy doesn't allow API keys."

## Sign out CLI devices

**Keys & access** → **CLI devices** lists the computers where members signed in to the Bearly CLI with your organization, grouped by member, with when each signed in and was last used.

- Select the **Sign out** button (an arrow leaving a door) beside a device to sign out that computer.
- Select **Sign out _N_ devices** beside a member who has more than one to sign out all of their computers.
- Select **Sign out every device** to sign out everyone: "Every member signed in to the Bearly CLI with this organization will need to sign in again."

A member who's signed out can sign in again while **Bearly CLI** is on. To keep everyone out, turn the switch off.

> **Note**
> If **Keys & access** reads "API keys, service accounts and CLI sign-in are off for this organization", email support@bearly.ai to turn them on.


## Related

- [Create an API key for your organization](https://bearly.ai/docs/platform/api-keys.md)
- [Add a service account](https://bearly.ai/docs/platform/service-accounts.md)
- [Use the Bearly API](https://bearly.ai/docs/api-access.md)

## Continue through the documentation

- [Documentation index](https://bearly.ai/docs.md): Browse every Bearly guide.
- [Previous: Set AI usage policies for your team](https://bearly.ai/docs/platform/policies.md)
- [Next: Create an API key for your organization](https://bearly.ai/docs/platform/api-keys.md)
- [Related: Get started with Bearly Platform](https://bearly.ai/docs/platform.md)
- [Related: Add a service account for a script or integration](https://bearly.ai/docs/platform/service-accounts.md)
- [Related: Use the Bearly API](https://bearly.ai/docs/api-access.md)
