> 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.

# Cloud variables

> Read and update app values through the SDK.

Cloud Variables hold named values your app can read after sign-in. If the developer allows remote updates, a signed-in client can change that value through the SDK. A dashboard edit appears on the next read; it does not push into a value already cached by the app.

**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](/v3/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](/v3/sdks/methods/results).

#### C\#

```csharp
app.getVariable("download_url", result =>
{
    if (result.ok)
        Console.WriteLine(result.data);
    else
        Console.WriteLine(result.message);
});

app.updateVariable("maintenance", "false", result => Console.WriteLine(result.message));
```

#### C++

```cpp
app.getVariable("download_url", [](auto result) {
    if (result.ok())
        std::cout << result.data << '\n';
});
auto update = app.updateVariable("maintenance", "false").get();
std::cout << update.message << '\n';
```

#### Python

```python
app.getVariable("download_url", completed=lambda result: print(result.data if result.ok else result.message))
app.updateVariable("maintenance", "false", completed=lambda result: print(result.message))
```

#### JavaScript / Node.js

```javascript
app.getVariable("download_url", result => {
    if (result.ok)
        console.log(result.data);
    else
        console.log(result.message);
});
app.updateVariable("maintenance", "false", result => console.log(result.message));
```

#### TypeScript

```typescript
app.getVariable("download_url", result => {
    if (result.ok)
        console.log(result.data);
    else
        console.log(result.message);
});
app.updateVariable("maintenance", "false", result => console.log(result.message));
```

#### Java

```java
app.getVariable("download_url").thenAccept(result -> System.out.println(result.message()));
app.updateVariable("maintenance", "false").thenAccept(result -> System.out.println(result.message()));
```

#### Go

```go
value, err := app.GetVariable(ctx, "download_url")
if err != nil {
    return err
}
fmt.Println(value.Data)
updated, err := app.UpdateVariable(ctx, "maintenance", "false")
if err != nil {
    return err
}
fmt.Println(updated.Message)
```

#### Rust

```rust
let value = app.getVariable("download_url").await?;
let updated = app.updateVariable("maintenance", "false").await?;
println!("{}", value.message);
println!("{}", updated.message);
```

Update calls only work when the variable's dashboard setting allows remote updates. Keep secrets out of cloud variables because SDK-visible values are delivered to customer software.