Configuration

Environment Variables

Threadline uses environment variables for configuration. Create a .env.local file in your project root:

# Required
THREADLINE_API_KEY=your-api-key-here
THREADLINE_ACCOUNT=your-email@example.com

# Optional
THREADLINE_API_URL=http://localhost:3000

Important: Add .env.local to your .gitignore.

Required Variables

THREADLINE_API_KEY
Your API key for authenticating with the Threadline server. Required for all operations.
THREADLINE_ACCOUNT
Your account identifier (email, company name, etc.). Not secret, used for identification. Required for all operations.

Optional Variables

THREADLINE_API_URL
Server URL (default: http://localhost:3000). Can also be set with --api-url flag.

CI/CD Configuration

In CI/CD environments, set environment variables as secrets in your platform:

  • GitHub Actions: Repository secrets
  • GitLab CI: CI/CD variables
  • Vercel: Environment variables

Never commit API keys to your repository. Always use platform secrets management.