configure-authentication

configure-authentication

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "configure-authentication" with this command: npx skills add speakeasy-api/agent-skills/speakeasy-api-agent-skills-configure-authentication

configure-authentication

Set up authentication for Speakeasy CLI commands.

When to Use

  • First time setting up Speakeasy CLI

  • Getting "unauthorized" errors from commands

  • Setting up CI/CD or AI agent environments

  • User says: "set up API key", "configure auth", "authentication failed"

Inputs

Input Required Description

API key Yes From Speakeasy Dashboard or browser login

Outputs

Output Description

Authenticated CLI Commands can access Speakeasy services

Interactive Login (Recommended)

speakeasy auth login

Opens browser for authentication. Credentials stored at ~/.speakeasy/config.yaml .

Non-Interactive (CI/AI Agents)

Set SPEAKEASY_API_KEY environment variable:

export SPEAKEASY_API_KEY="<your-api-key>"

Get your API key: Speakeasy Dashboard → Settings → API Keys

Note: Environment variable takes precedence over config file.

Verifying Authentication

speakeasy status --output json

Returns workspace info as JSON if authenticated; unauthorized error if not.

Troubleshooting

Error Cause Solution

unauthorized

Missing or invalid API key Run speakeasy auth login or set SPEAKEASY_API_KEY

workspace not found

Wrong workspace configured Check workspace ID in ~/.speakeasy/config.yaml

Token expired Session timed out Re-run speakeasy auth login

Config File Location

Credentials stored at ~/.speakeasy/config.yaml :

speakeasy_api_key: "<your-api-key>" speakeasy_workspace_id: "<workspace-id>" # optional

For multiple workspaces:

workspace_api_keys: org@workspace: "<api-key>"

Related Skills

  • start-new-sdk-project

  • Requires auth for quickstart

  • check-workspace-status

  • Verify auth is working

  • regenerate-sdk

  • Requires auth for generation

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

start-new-sdk-project

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

validate-openapi-spec

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

improve-operation-ids

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

get-ai-suggestions

No summary provided by upstream source.

Repository SourceNeeds Review