For the complete documentation index, see llms.txt. This page is also available as Markdown.

SDK Workflow

This page covers the full development, deployment, testing, and onboarding sequence. Three delivery paths are kept distinct throughout: UI upload and approval, CLI deployment (ncp deploy), and admin onboarding (ncp onboard) - they are not interchangeable.

1. Initialize

ncp init my-agent-project
cd my-agent-project

This generates the standard project layout (ncp.toml, requirements.txt, apt-requirements.txt, agents/, tools/). Run an initial ncp validate . to confirm the scaffold is correct.

2. Develop and test locally

Build your tools and agent, then test:

ncp playground --local        # run the agent locally (tool logic only)
ncp playground --agent my-agent   # run on the platform (platform-connected)

Local runs exercise your tool logic, but platform-only helpers cannot be validated locally - Memory, Files, Metrics, and Artifacts raise NotImplementedError, and invoke_llm, send_status, and send_content raise RuntimeError outside the platform agent loop. Use platform-connected playground testing to validate those.

3. Validate

ncp validate .

Validation checks project structure, configuration, agent definitions, dependencies, imports, and any skills/ frontmatter and names.

4. Package

ncp package .                       # -> <project-name>.ncp
ncp package . --output my-agent.ncp # custom output name
ncp package . --version 1.0.0       # version tag

Validate before packaging so build failures surface early.

5. Authenticate

Credentials are stored per-user in ~/.ncp/credentials.toml, so you don't need to pass --platform/--api-key on every command, and you don't re-authenticate for other projects targeting the same platform. Multiple platforms are stored separately, and the most recently authenticated becomes the default. A project may target a specific platform through its own configuration; never commit credentials to version control.

6. Deploy

Deployed agents run containerized on the platform.

7. Playground

Session commands: /help, /exit, /reset (clear history), /clear (clear screen).

8. Manage deployed agents

9. Scripted testing

ncp ask prints the answer, the tools called, and any error. Exit code is 0 on success and 1 on failure, so it composes in scripts.

Python testing API:

ask_agent() uses stored credentials (or accepts platform/api_key), with a default timeout of 120 seconds. An async variant, query_agent_async(), is also available.

10. Discover connectors and platform agents

11. Admin onboarding (admin-only)

ncp onboard is distinct from ncp deploy. Onboarded agents run integrated within the platform process (no container isolation) and are made available to users through role-based CustomAgents permissions in Admin > Roles & Permissions. This requires admin privileges.

Last updated