# Connect

In order to work with an OpenStack cloud you first need to create a `Connection` to it using your credentials. A `Connection` can be created in 3 ways, using the class itself, Config Files, or Environment Variables. It is recommended to always use Config Files as the same config can be used across tools and languages.

## Create Connection

To create a `Connection` instance, use the `connect()` factory function.

Full example at connect.py

Note

To enable logging, see the Logging user guide.

## Next

Now that you can create a connection, continue with the User Guides to work with an OpenStack service.

this page last updated: 2026-01-16 23:06:19

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.