Skip to content
Chat Commands

Chat Commands

Last updated:

Use camber chat to send a message to a Camber agent or an agent team and read the reply in your terminal. The reply streams as it is written, so you can use the command interactively or in scripts.

Before you begin, install the Camber CLI and log in.

Chat with an agent

Address an agent by its tag, @owner.alias, and pass your message with --message:

camber chat --agent @camberuser.sql-analyst --message "Summarize last month's signups"

The agent’s reply streams to your terminal. You can also set the AGENT_TAG environment variable instead of passing --agent.

To keep a conversation going, run camber chat with the conversation ID from an earlier run. Use --output json to get that ID:

camber chat --agent @camberuser.sql-analyst --message "Break that down by plan" \
  --conversation-id <conversation-id> --output json

With --output json, the command waits for the full reply and prints a single JSON object:

{
  "conversation_id": "7f3c…",
  "result": "Signups grew 12% last month…",
  "output_stash_files": ["stash://camberuser/…/outputs/by_plan.csv"]
}

Run a chat in the background

For long-running work, add --async. The command returns right away with the conversation ID and a link to the chat:

camber chat --agent @camberuser.sql-analyst --message "Rebuild the churn model" --async

Check on it later with camber chat status:

camber chat status --conversation-id <conversation-id>

The status shows running while the agent works. When it finishes, the command also prints the reply and any output files. If a response is still running, add --stop with --async and --conversation-id to stop it and send a new message instead.

Chat with an agent team

An agent team is a saved group of agents with one supervisor. When you chat with a team, the supervisor reads your request, hands parts of it to the team’s members, and returns one combined answer. To create a team, see Agent Teams.

Agent Teams is in early access. If your workspace doesn’t have it yet, contact support@cambercloud.com.

Find your team’s tag

A team’s tag is @owner.alias. The owner is your username for a personal team, the workspace’s unique name for a workspace team, or nova for a team provided by Camber. List the teams in your active workspace to find each team’s alias:

camber agent team list

Use --system to list teams provided by Camber, or --team <workspace> to list another workspace’s teams.

Send a message to the team

Pass the team’s tag with --team instead of --agent:

camber chat --team @acme.data-team --message "Why did churn spike in October?"

While the team works, the CLI shows the status of each member the supervisor hands work to. Each line shows an agent starting, then finishing:

  ⟳ @acme.sql-analyst           running
  ⟳ @acme.cohort-analyst        running
  ✓ @acme.sql-analyst           completed  (41s)
  ✓ @acme.cohort-analyst        completed  (58s)
Churn rose mainly in the Starter plan…

The supervisor’s combined answer streams to your terminal as it is written, so it can appear between or after the status lines. A member that could not finish is marked failed, and the supervisor explains what it could not complete in its answer.

Member status goes to standard error, and the answer goes to standard output. If you redirect or pipe standard output, you capture only the answer:

camber chat --team @acme.data-team --message "Draft the QBR summary" > summary.md

Continue a team conversation

Send --team again with every follow-up message, together with the conversation ID. Camber applies the team only to the message that names it.

camber chat --team @acme.data-team --message "Now compare it to September" \
  --conversation-id <conversation-id> --output json

What to know about team chats

  • --team cannot be combined with --agent. If your shell sets AGENT_TAG, --team takes precedence; passing --agent explicitly alongside --team is an error.

  • --team does not work with --async.

  • With --output json, the result includes a members list with each member’s latest status. The list is empty if the supervisor answered without handing work to anyone. The command prints no live status lines in this mode, only the JSON.

    {
      "conversation_id": "7f3c…",
      "result": "Churn rose mainly in the Starter plan…",
      "output_stash_files": [],
      "members": [
        {"agent": "acme.sql-analyst", "status": "completed"},
        {"agent": "acme.cohort-analyst", "status": "completed"}
      ]
    }

Options

OptionDescription
-a, --agentAgent tag, such as @owner.alias. Can also be set with the AGENT_TAG environment variable.
-t, --teamAgent team tag, such as @owner.alias. Use instead of --agent.
-m, --messageThe message to send. Required.
-c, --conversation-id, --cidUUID of an existing conversation to continue.
-o, --output jsonWait for the full reply and print one JSON object.
--modelModel to use for this chat. Run camber chat --help to see the available models.
--asyncStart the chat and return immediately. Not available with --team.
--stopWith --async, stop the conversation’s current response and send a new message.

Troubleshooting

Agent team not found
Check the tag with camber agent team list. The tag is @owner.alias: use the Alias column from the list, and the username or the workspace’s unique name that owns the team as the owner.
Agent teams are not available
Agent Teams is not enabled for your account yet. Contact support@cambercloud.com.
Agent team is not available in this conversation
The conversation belongs to a different workspace than the team. Start a new conversation without --conversation-id.
This team needs at least 2 available agents
One or more of the team’s agents is no longer available to you. Open the team in Agents → Agent Teams to check its members.
--agent and --team cannot be used together
Remove one of the two options.

Related documentation