# Initialization with all arguments
client = Client(
  token="rnd_abc123…", # API key
  base_url="localhost:8120" # Local task server URL
)
```

| Argument | Description |
|--------|--------|
| `token` | The [API key](api#1-create-an-api-key) to use for authentication. If omitted, the client automatically detects and uses the value of the `RENDER_API_KEY` environment variable. |
| `base_url` | The base URL to use for task-related requests. Specify only for [local development](workflows-local-development). If omitted: - By default, the client uses the base URL of the Render API (`https://api.render.com`). - If the `RENDER_LOCAL_DEV_URL` environment variable is set, the client uses the value of this variable. - If the `RENDER_USE_LOCAL_DEV` environment variable is set to `true`, the client uses the local task server's default URL (`http://localhost:8120`). |

If you don't provide an API key, the client will automatically detect and use the value of the `RENDER_API_KEY` environment variable (if set).

### Task methods

All methods below are `async`.

###### `workflows.run_task`

Runs the registered task with the specified identifier, passing the specified arguments.

**On success:** Returns an [`AwaitableTaskRun`](#the-awaitabletaskrun-class) object representing the initial state of the task run.

**Raises:** [`ClientError`](#clienterror), [`ServerError`](#servererror), [`TimeoutError`](#timeouterror)

```python