Developers

Camp Codegen • Build with CLI & SDK

Generate → Compile → Deploy. Choose Node or Python. Stream logs, fetch artifacts, and ship faster.

Prompt → Solidity
AI Compile & Fix
One‑click Deploy

Try the SDK in 1 line

Copy, paste, and run. Works out‑of‑the‑box.

npx @blockxai/camp-codegen --help
python -m camp_codegen --help

Quick Start

Install the CLI for your preferred runtime

npm i -g @blockxai/camp-codegen
npx @blockxai/camp-codegen --help

Common workflow

  • Initialize a new contract workspace
  • Generate contract code from a natural-language prompt
  • Compile and iterate on errors using AI-assisted fixes
  • Deploy to your target network

Refer to the npm README for the authoritative command list and flags.

SDK Quick Start (Node)

import { AcadClient } from "@blockxai/camp-codegen";

const client = new AcadClient();
const jobId = await client.start_pipeline_auto("ERC721 with minting");
const final = await client.wait_for_completion(jobId, { streamLogs: true });
console.log("Final:", final);

const sources = await client.get_sources(jobId);

Useful CLI commands

Run AI pipeline

camp pipeline:start --prompt "ERC721 with minting"

Get status

camp job:status <jobId>

Stream logs

camp job:wait <jobId> --stream --timeout 900 --interval 2

Fetch artifacts (all)

camp artifacts <jobId> --include all

Deploy ERC20

camp erc20:deploy --name Token --symbol TKN --supply 1000000 --network basecamp

AI compile

camp ai:compile --filename Foo.sol --code "..."

Reference & Guides