> This page is for version V3 - Beta (default).
> For other versions, use one of these documentation indexes:
> - V3 - Beta (default): https://docs.authlyx.dev/v3/llms.txt
> - V2 - Legacy: https://docs.authlyx.dev/v2/llms.txt
> - V1 - End of support: https://docs.authlyx.dev/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.authlyx.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.authlyx.dev/_mcp/server.

# Initialize

> Start the SDK connection for one application.

Initialize the SDK before sign-in. It checks the AppKey and version, establishes the installation identity and reads the app update information. It does not sign a user in.

**SDK version:** V3 Beta. These examples use the current downloads. V1 and V2 use different APIs; choose them in the version selector.

Each example assumes `app` is the AuthlyX client you created in [Connect your app](/guides/quickstart). When a method takes a callback, AuthlyX calls it after the reply arrives. A name such as `result` inside that callback is created there; you do not declare it at the top of your file. For C++ futures, Python or JavaScript `await`, Java futures, Go errors and Rust `?`, read [Results](/sdks/methods/results).

#### C\#

```csharp
app.initialize(result =>
{
    Console.WriteLine(result.ok ? "Connected" : result.message);
});
```

#### C++

```cpp
app.initialize([](auto result) {
    std::cout << (result.ok() ? "Connected" : result.message) << '\n';
});
```

#### Python

```python
app.initialize(completed=lambda result: print(result.message))
```

#### JavaScript / Node.js

```javascript
app.initialize(result => {
    console.log(result.ok ? "Connected" : result.message);
});
```

#### TypeScript

```typescript
app.initialize(result => {
    console.log(result.ok ? "Connected" : result.message);
});
```

#### Java

```java
app.initialize(result -> System.out.println(result.ok() ? "Connected" : result.message()));
```

#### Go

```go
result, err := app.Initialize(ctx)
if err != nil {
    return err
}
if !result.Success {
    return errors.New(result.Message)
}
```

#### Rust

```rust
let result = app.initialize().await?;
if !result.success {
    println!("{}", result.message);
}
```

After initialization, show an update option if the response says a newer version is available. Let your user choose how to get it. The SDK does not silently install the update. See [Login](/sdks/methods/login) after initialization succeeds.