---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Your first workspace

Explore a local workspace with your coding agent, then connect it to a hosted workspace when you are ready to deploy.

## Create the starter

Install the CLI on macOS or Linux and create the starter in a new directory. Open that directory in your coding agent. Ask it to find the signed-in Leads screen, the action that changes a lead’s status and the roles allowed to call it. These files are available offline.

Terminal

```
segmentstream init ./my-workspace
```

[Install the CLI](https://segmentstream.com/developers/cli)

## Explore the project

Start with README.md and AGENTS.md. The app, ontology, agent, connections and pipeline directories contain the code that defines your workspace. Once deployed, the console shows the corresponding repository.

The repository in the console: any file at any commit, and who changed it, agent or person.

## Link and deploy

From the project directory, sign in and link the project. Choose the organization and workspace that should own it. If you create one, confirm its permanent region with the owner. Linking sets up the workspace Git remote. Review the files, commit the intended changes and workspace link on main, then deploy the clean revision.

Terminal

```
cd my-workspace
segmentstream login
segmentstream link
```

## Open the running app

Once the workspace is ready and main is committed, deploy from the linked directory. Check the reported revision, open the app URL and sign in. In the starter, open Leads and check that what the member can see and do matches their role.

Terminal

```
segmentstream deploy
segmentstream status
```

[Check a deployment](https://segmentstream.com/docs/check-a-deployment)

[Read as Markdown ↗](https://segmentstream.com/docs/your-first-workspace.md)
