Skip to main content
A session is a single conversation thread with one agent — start it, send messages back and forth, then cancel or let it finish. gumloop sessions is how you do all of that from the terminal.

Create a session

Start a new conversation with an agent, optionally with the first user message:
Read the message from a file or stdin to avoid escaping:
The output shows the new session ID, the agent it’s running against, its state, the creation timestamp, and the last few messages. Hang on to the session ID — you’ll need it to send follow-ups.
Don’t have an agent ID yet? Run gumloop agents list to see all the agents you can talk to.

Get a session

Prints the session metadata and the last five messages. Add --json for the full transcript.

Send a follow-up

Same input options as sessions create:

Cancel a session

Stops a session that’s currently running.
The CLI returns the agent’s final response after each create / send call but does not stream tokens as they’re generated. If you need token-by-token streaming, use client.sessions.stream() from the Python SDK directly.