---
title: "Login Command | skene Docs | Skene"
description: "The login and logout commands manage authentication with Skene Cloud upstream, which is required for pushing engine and trigger artifacts."
url: https://www.skene.ai/resources/docs/skene/guides/login
doc_version: "ded34b4af8cf"
last_updated: 2026-11-17
---

The `login` and `logout` commands manage authentication with Skene Cloud upstream, which is required for pushing engine and trigger artifacts via the `push` command.

## Prerequisites

- A Skene Cloud workspace URL (e.g. `https://skene.ai/workspace/my-app`)
- An API token for your workspace. Get your workspace api-key here: https://www.skene.ai/workspace/apikeys

## Basic usage

Log in to upstream:

```bash
uvx skene login --upstream https://skene.ai/workspace/my-app
```

The command prompts you for a token, validates it against the upstream API, and saves the credentials.

Check login status:

```bash
uvx skene login --status
```

Log out:

```bash
uvx skene logout
```

## Flag reference

### `login`

| Flag              | Short | Description                                |
| ----------------- | ----- | ------------------------------------------ |
| `--upstream TEXT` | `-u`  | Upstream workspace URL                     |
| `--status`        | `-s`  | Show current login status for this project |

### `logout`

No options. Removes saved credentials for the current project.

## How credentials are stored

Login saves upstream URL, workspace slug, and API key to `.skene.config` in the project directory (restrictive permissions `0600`). This file is gitignored by default.

Logout removes those fields from the same file, preserving other settings.

## Token resolution

When commands need an upstream token, it is resolved in this order:

1. `SKENE_UPSTREAM_API_KEY` environment variable
2. `upstream_api_key` field in `.skene.config`

## Next steps

- [Push](https://www.skene.ai/resources/docs/skene/guides/push): Push engine and trigger artifacts to upstream
- [Configuration](https://www.skene.ai/resources/docs/skene/guides/configuration): Config files, env vars, and priority

## Sitemap

- [Markdown sitemap](https://www.skene.ai/sitemap.md): every page on this site, with its markdown counterpart.
- [Index for language models](https://www.skene.ai/llms.txt): the same set as a link-dense index.
- [Full corpus](https://www.skene.ai/llms-full.txt): reference content concatenated as plain text.
