Controlling Eight Sleep from an Agent Using the eightctl Skill
機械翻訳 / Machine-translated
Original article: Controlling Eight Sleep from an Agent Using the eightctl Skill (cccskills)
Skill page: eightctl
Key takeaways
If you use an Eight Sleep Pod, installing the eightctl skill lets you ask an AI agent in natural language to adjust temperature or manage alarms.
This article covers the range of supported operations.
It also explains how to set up eightctl itself, how to install the skill, example requests you can make, and important caveats to know before you start.
Send a single message before bed and the agent will check your Pod's status, then handle power and temperature settings in sequence.
Here's an example request:
Check the Pod's current status, turn it on, and set the temperature to 20.
The agent first retrieves the Pod's current state using the eightctl command and reports the results.
It then turns the power on and changes the temperature to the value you specified.
The whole process that normally involves opening your smartphone app and tapping through several screens is replaced by a single line of chat.
eightctl is a skill that lets an agent use the eightctl command to control an Eight Sleep Pod.
Supported operations fall into five categories:
| Operation type | What you can do |
|---|---|
| Status & power | Check current status, turn power on/off |
| Temperature | Set temperature to a specific value |
| Alarms | View list, create new, cancel |
| Schedules | View list, create new, update existing |
| Audio & base | Check audio playback state, play/pause; check base info and adjust angle |
You can verify the current state before making any changes.
Ask "show me the status" and the current state is returned; you can then ask to turn the power on or off in the same conversation.
The convenience is that checking and acting happen in a single exchange.
Temperature is set by specifying a numeric value.
Say something like "set the temperature to 20" and the agent builds and runs the appropriate command.
This works well for situations like sending a quick chat message from under the covers right before you fall asleep.
For alarms, you can view the list, create a new one, and cancel an existing one — those three operations are all that SKILL.md lists; editing an existing alarm is not included.
For schedules, you can view the list, create new ones, and also update existing entries, so you can hand off the task of reviewing and revising your schedule to the agent.
For audio, you can check playback status and ask the agent to play or pause.
For the base, you can check information and adjust the angle.
This means you can handle all bed-related controls — temperature, alarms, audio, and the base — through the same interface.
Getting started requires three stages: setting up eightctl itself, configuring authentication, and installing the skill.
Work through them in order.
The skill assumes the eightctl command is already installed.
The installation method provided by the distributor uses Go.
Run the following command in an environment that has Go installed:
go install github.com/steipete/eightctl/cmd/eightctl@latest
Authentication can be configured either via a config file or environment variables.
Both methods use your Eight Sleep account credentials.
| Method | Where to configure |
|---|---|
| Config file | ~/.config/eightctl/config.yaml |
| Environment variables | EIGHTCTL_EMAIL and EIGHTCTL_PASSWORD |
You can add the skill with the following command.
When you run it, you'll be prompted to choose the target agent, such as Claude Code or Codex.
npx skills add https://github.com/openclaw/openclaw --skill eightctl
There's also an option to install it by asking your agent directly.
Send the following message as-is:
Please install the following Agent Skill.
https://github.com/openclaw/openclaw/tree/main/skills/eightctl
First, review the contents of SKILL.md and any accompanying files to confirm there are no suspicious operations (such as sending data externally or reading credentials), then place it in ~/.claude/skills/eightctl/ for Claude Code, or ~/.agents/skills/eightctl/ for Codex.
The installation location depends on whether you want to use the skill across all projects or only in a specific one.
| Agent | Use in all projects | Use in a specific project only |
|---|---|---|
| Claude Code | ~/.claude/skills/ | .claude/skills/ in the project |
| Codex | ~/.agents/skills/ | .agents/skills/ in the project |
For requests, simply write what you want to do along with any values, in plain language.
Here are three common scenarios.
I'm about to sleep, so lower the Pod temperature to 18.
Show me the status after the change too.
The agent sets the temperature to 18, then retrieves and returns the current status.
You can confirm right away that the value took effect.
Create an alarm for tomorrow morning.
After creating it, show me the full alarm list.
The agent creates a new alarm and then displays the list.
When the alarm goes off the next morning, just say "cancel the alarm" to stop it.
Show me a list of my registered schedules.
The agent returns a list of your current schedules.
Review the list and tell it what you'd like to change, and the agent will handle updating the relevant schedule.
Using this skill requires an Eight Sleep Pod and a corresponding account.
If eightctl is not installed and authenticated, the agent cannot execute any operations.
The API that eightctl uses is unofficial and has rate limits.
Avoid repeatedly logging in.
Rather than asking for status checks multiple times in quick succession, it's safer to combine checks and operations into a single request.
Authentication stores your email address and password in a config file or environment variables, so be mindful of where and how those credentials are kept.
The skill itself consists of only a single file, SKILL.md.
Read through its contents before installing to confirm there are no suspicious operations.
It is licensed under MIT.
After changing temperature or alarms, it's a good idea to verify the results before going to sleep.
Just ask "show me the status" or "show me the alarm list" after making changes to confirm everything was applied correctly.
These skills are suited for people who want to hand off other bedroom devices or account management to an agent in the same way.
No.
eightctl works by authenticating with an Eight Sleep account and controlling a Pod.
You need both a Pod and an account for it to work.
Write them in ~/.config/eightctl/config.yaml, or pass them via the environment variables EIGHTCTL_EMAIL and EIGHTCTL_PASSWORD.
Either method is sufficient on its own.
Yes.
When running npx skills add, select Codex, or place the skill files in ~/.agents/skills/ or the project's .agents/skills/ directory.
The alarm operations this skill supports are: viewing the list, creating a new alarm, and canceling one.
If you want to change the time or other details, you'll need to create a new alarm.
Schedules, on the other hand, do support updating.
eightctl is a skill that lets you ask an agent to check your Eight Sleep Pod's status, control power and temperature, and manage alarms and schedules.
Audio playback and base angle adjustments are also handled within the same conversation.
Getting started requires installing the eightctl binary and configuring authentication.
Because it uses an unofficial API, avoid repeated logins.
If you want to handle your pre-sleep routine through chat, give it a try via the cccskills page.
This article is a repost of the cccskills editorial piece "Controlling Eight Sleep from an Agent Using the eightctl Skill."
Full skill details and installation instructions can be found on the eightctl page on cccskills.