> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# hasAllEnvVars

> Check whether all required environment variables are set.

[ref-validateenvvars]: /docs/server-sdks/reference/typescript/agents/skill-base/validate-env-vars

Convenience wrapper around
[`validateEnvVars()`][ref-validateenvvars] that returns a boolean. Mirrors the
Python SDK's `validate_env_vars() -> bool` return shape. Checks each entry in
the skill class's `REQUIRED_ENV_VARS` static array against `process.env`.

## **Returns**

`boolean` -- `true` if every required env var is present, `false` otherwise.

## **Example**

```typescript {10}
import { SkillBase } from '@signalwire/sdk';

export class WeatherSkill extends SkillBase {
  static SKILL_NAME = 'weather';
  static SKILL_DESCRIPTION = 'Fetches current weather.';
  static REQUIRED_ENV_VARS = ['WEATHER_API_KEY'];

  async setup(): Promise<boolean> {
    if (!this.hasAllEnvVars()) {
      this.logger.error('Missing required environment variables');
      return false;
    }
    return true;
  }
}
```