This won't work for Windows users, but this is the setup ripped straight from Pyrax's docs:

```python
with open(os.path.expanduser("~/.ssh/id_rsa.pub")) as keyfile:
    cs.keypairs.create("my_key", keyfile.read())
server = cs.servers.create("first_server", ubu_image.id, flavor_1GB.id,
        key_name="my_key")
```