Documentation

CLI v2.4 · API v1

Stuck on something?

Our engineers answer support email within a few hours.

Email support

QUICKSTART

From install to first pull request

Four commands take you from a fresh install to a reviewed, tested change in your own repository.

1

Install the CLI

Requires Node.js 18 or later. Works on macOS, Linux and Windows.

$ npm install -g @codecraft/cli

2

Sign in

Opens your browser to connect the CLI to your CodeCraft account.

$ codecraft login

3

Index your project

Run it in your repository root to build the project profile — about 20 seconds for most repos.

$ codecraft init

4

Generate your first change

Describe the change. CodeCraft writes the code and tests, then opens a pull request.

$ codecraft gen add-dark-mode --tests --pr

REST API

Create a generation

Everything the CLI does is available over a simple REST API. Authenticate with a bearer token from your workspace settings.

POST

/v1/generations

Generates code for a prompt in the context of an indexed project. Returns a summary, test results and an optional pull request.

BODY PARAMETERS

prompt

string

required

What you want CodeCraft to build or change.

project_id

string

required

The indexed project to generate against.

tests

boolean

Write tests alongside the change. Defaults to true.

open_pr

boolean

Open a pull request with the result.

REQUEST

cURL

curl https://api.codecraft.dev/v1/generations

-H "Authorization: Bearer $CODECRAFT_KEY"

-d prompt="Add rate limiting to /api/upload"

-d project_id=prj_8f2a

-d tests=true

RESPONSE

200 OK

{

"id": "gen_4k9x",

"status": "completed",

"files_changed": 3,

"tests": { "passed": 8, "failed": 0 },

"pull_request": null

}

SDKS

Official SDKs

Typed clients for the languages teams integrate with most. All SDKs wrap the same REST API.

TypeScript

v2.4.0

$

npm i @codecraft/sdk

TypeScript

v2.4.0

$

npm i @codecraft/sdk

Python

v2.3.1

$

pip install codecraft

Python

v2.3.1

$

pip install codecraft

Go

v1.8.0

$

go get codecraft.dev/go

Go

v1.8.0

$

go get codecraft.dev/go

C

START BUILDING TODAY

Your next feature is one prompt away.

Join 20,000+ developers shipping typed, tested code with CodeCraft. Set up in under two minutes.

✓

14-day free trial

✓

No credit card required

✓

Cancel anytime

C

START BUILDING TODAY

Your next feature is one prompt away.

Join 20,000+ developers shipping typed, tested code with CodeCraft. Set up in under two minutes.

✓

14-day free trial

✓

No credit card required

✓

Cancel anytime

C

START BUILDING TODAY

Your next feature is one prompt away.

Join 20,000+ developers shipping typed, tested code with CodeCraft. Set up in under two minutes.

✓

14-day free trial

✓

No credit card required

✓

Cancel anytime

C
CodeCraft

Built for developers who’d rather ship than type boilerplate.

CODECRAFT

© 2026 CodeCraft Technologies. All rights reserved.

hello@codecraft.dev

Create a free website with Framer, the website builder loved by startups, designers and agencies.