# swarmops auth status

> Release: 0.13.0 · Last changed: 2026-11-17 · Source: https://github.com/KeiaiLab/SwarmOps/blob/stable/docs/reference/commands/auth-status.md

List the logins your login file holds, without their tokens.

It reads the login file alone, and reaches no network: no token is checked with its provider. No file is no logins. A login of a provider this build does not know is listed too. A file that is a symbolic link, that its group or others can read or write, or that is not a login file of this version is E\_INVALID\_ARG, with the file in details.auth\_file.

```yaml
title: "swarmops auth status"
description: "List the logins your login file holds, without their tokens."
group: "auth"
since: "0.12.0"
mutates: false
identity_required: false
mcp_tool: ""
envelope_op: "auth_status"
exit_codes: [0, 2]
errors: [E_INVALID_ARG]
syntax: "swarmops auth status [OPTIONS]"
```

## Syntax

```text
swarmops auth status [OPTIONS]
```

## Required arguments

None.

## Optional arguments

The command also takes the [global options](../cli.md#global-options).

## Examples

### CLI

```sh
SWARMOPS_AUTH_FILE=[tmp]/state/swarmops/auth.toml swarmops auth status
```

```json
{
  "ok": true,
  "op": "auth_status",
  "api": 1,
  "result": {
    "file": "[tmp]/state/swarmops/auth.toml",
    "logins": []
  },
  "meta": {
    "elapsed_ms": "[elapsed_ms]",
    "resolved": {},
    "auth": "trust"
  }
}
```

Exit code 0. Recorded by the CLI tests. A name in square brackets, such as `[tmp]` or `[c1]`, stands for what differs from run to run: the test's temporary directory, an id, a time.

## Return information

`result` is a `AuthStatus` (`swarmops schema AuthStatus` prints its JSON Schema).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `file` | `string or null` | no | The login file, a path on the caller's host, whether or not it exists. Omitted on a host that names no directory for it. |
| `logins` | `array of AuthEntry` | yes | The logins, in the file's order; empty when there is no file or it holds none. |

Envelope `op`: `auth_status`.

Exit codes:

- `0`: Success.
- `2`: The request or the command line is malformed.

## Errors

- [`E_INVALID_ARG`](../errors.md#e_invalid_arg) (exit 2): A malformed argument or request, including a command-line usage error.

Any command that opens a store may also fail with a store error, such as [`E_NOT_A_REPO`](../errors.md#e_not_a_repo), [`E_IO`](../errors.md#e_io) or [`E_STORE_CORRUPT`](../errors.md#e_store_corrupt); a command line the grammar refuses is [`E_INVALID_ARG`](../errors.md#e_invalid_arg) (exit 2).

## See also

- [`swarmops auth login`](auth-login.md)
- [`swarmops auth logout`](auth-logout.md)
- [`swarmops auth git-credential`](auth-git-credential.md)
- [CLI reference](../cli.md)
- [Error codes](../errors.md)
