# Use the Rackspace adapter

In order to use the Rackspace adapter, you first need to create
a client object defined as a service. This Flysystem adapter
works with the [rackspace/php-opencloud](https://packagist.org/packages/rackspace/php-opencloud) package.

```yml
services:
    acme.rackspace_client:
        class: OpenCloud\Rackspace
        arguments:
            - "https://identity.api.rackspacecloud.com/v2.0/",
            - username: ":username"
              password: ":password"
```

Set this service as the value of the `container` key in the `oneup_flysystem` configuration.

```yml
# app/config/config.yml
oneup_flysystem:
    adapters:
        my_adapter:
            rackspace:
                container: acme.rackspace_client
```

## More to know
* [Create and use your filesystem](filesystem_create.md)
* [Add a cache](filesystem_cache.md)