> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Ruby XDK

> Install the official Ruby XDK (xdk) gem from RubyGems.

## Requirements

* **Ruby 3.0+**
* No runtime gem dependencies (uses Ruby's built-in `net/http`, `openssl`, and `json` standard library)

## RubyGems

```bash theme={null}
gem install xdk
```

## Bundler (`Gemfile`)

```ruby theme={null}
gem "xdk"
```

Then run:

```bash theme={null}
bundle install
```

## Encrypted X Chat DMs (optional)

If your app uses the encrypted [X Chat API](https://docs.x.com/xchat/introduction.md), install the companion `chat_xdk` encryption gem as well:

```bash theme={null}
gem install xdk chat_xdk
```

## Verify installation

```ruby theme={null}
require "xdk"
puts Xdk::VERSION
```
