CLI
apidly コマンド:ターミナルからサーバー、エンドポイント、ボリューム、請求の起動・停止・監視ができます。
npm install -g https://apidly.com/downloads/apidly-cli-0.1.35.tgz分析用と広告用の Cookie は、同意しない限りオフのままです。 Cookieポリシー
公開ページがどのように使われているかを把握するため、ページビューやセッション録画を含め、Google AnalyticsとMicrosoft Clarityを、またRedditでの当社広告が訪問やアカウント登録につながっているかを計測するためにReddit Pixelを利用したいと考えています。オンにするかどうかは、ここでお選びいただけます。拒否してもサイトの動作は変わりません。
開発者向け
OpenAPI ドキュメント付きの REST API、すべての API ルートを扱えるコマンドラインツール、JavaScript と Python の SDK、MCP サーバー、署名付き Webhook。
$10 のチャージから、サブスクリプションなしで始められます。新しいアカウントの最初のサーバーは、起動前に担当者が確認します。待機中は課金されません。
OpenAPI 3.1の記述 (JSON)REST API 用の MIT ライセンスのクライアントを1つのリポジトリにまとめています。コンソールで API キーを作成し、APIDLY_API_KEY を設定してください。
apidly コマンド:ターミナルからサーバー、エンドポイント、ボリューム、請求の起動・停止・監視ができます。
npm install -g https://apidly.com/downloads/apidly-cli-0.1.35.tgzAI アシスタントが stdio 経由でサーバーの料金確認、起動、管理を行えます。既定では読み取り専用です。起動を許可するには --allow-writes と料金の上限を追加してください。
npm install -g https://apidly.com/downloads/apidly-mcp-0.1.26.tgz依存関係のない REST API 用クライアントです。
npm install https://apidly.com/downloads/apidly-sdk-0.1.35.tgzREST API 用の Python クライアントです。
pip install https://apidly.com/downloads/apidly-0.1.35-py3-none-any.whlサーバー、ボリューム、SSH キー、エンドポイントをコードで管理できます。ソースからビルドしてください。詳しくは README を参照してください。
作業に合うものを選んでください。どれも同じ API キーとスコープを使います。
スコープ付きキーと OpenAPI 3.1 ドキュメントを備えた HTTPS 上の JSON。
プランを探し、デプロイ、接続、ログ確認、停止までターミナルで。
依存関係のない型付きクライアント。
AI アシスタントにサーバーを管理させる。
サーバー、残高、請求書などの署名付きイベント。
プラン、テンプレート、サーバー、ボリューム、請求、チーム、Webhook のすべてが /api/v1 にあります。キーは Bearer トークンとして送ります。
# Cheapest plans you can launch now
curl "https://apidly.com/api/v1/plans?availability=available&sort=price&limit=3" \
-H "Authorization: Bearer $APIDLY_API_KEY"
# Request a server (safe to retry with the same Idempotency-Key)
curl -X POST "https://apidly.com/api/v1/servers" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"planId":"PLAN_ID","templateId":"TEMPLATE_ID","label":"first-run","diskGb":50}'apidly コマンドはすべての API ルートを扱えるので、あとでスクリプトにする操作をまず手で試せます。
apidly init
apidly up notebook --hours 2
# Or pick the plan and template yourself
apidly plans --available --sort price --limit 5
apidly deploy --plan PLAN_SLUG --template pytorch-jupyterlab --wait
apidly ssh SERVER_ID
apidly logs SERVER_ID --follow
apidly stop SERVER_ID
apidly destroy SERVER_IDどちらの SDK も API に 1 対 1 で対応し、安全に再試行し、長い一覧をまとめてたどります。このサイトからダウンロードしてください。公開パッケージレジストリにはまだありません。
import { Apidly } from "@apidly/sdk";
const apidly = new Apidly({ apiKey: process.env.APIDLY_API_KEY });
const { plans } = await apidly.plans.list({ availability: "available", sort: "price", limit: 5 });
const { templates } = await apidly.templates.list();
const { server, deployment } = await apidly.servers.create({
planId: plans[0].id,
templateId: templates[0].id,
label: "first-run",
diskGb: 50,
});
// server is null while the request waits for approval: read deployment.statusimport os
from apidly import Client
client = Client(api_key=os.environ["APIDLY_API_KEY"])
plans = client.plans.list(availability="available", sort="price", limit=5)["plans"]
templates = client.templates.list()["templates"]
result = client.servers.create(
plan_id=plans[0]["id"],
template_id=templates[0]["id"],
label="first-run",
disk_gb=50,
)apidly-mcp はお使いのコンピューターで動作し、プランやテンプレートの一覧、サーバーのデプロイ・起動・停止・削除、ログや使用量、残高の確認といったツールをアシスタントに提供します。
{
"mcpServers": {
"apidly": {
"command": "apidly-mcp",
"args": ["--read-only"],
"env": { "APIDLY_API_KEY": "paste-your-key-here" }
}
}
}サーバーの起動や停止、残高の減少、請求書の作成などがあると、HTTPS エンドポイントに POST が届くので、ポーリングは不要です。
apidly webhooks add https://example.com/apidly --events server.running,balance.low
apidly webhooks test WEBHOOK_IDimport express from "express";
import { verifyWebhook } from "@apidly/sdk";
const app = express();
app.post("/apidly", express.raw({ type: "application/json" }), (req, res) => {
const ok = verifyWebhook(
req.body,
req.get("Apidly-Signature") ?? "",
process.env.APIDLY_WEBHOOK_SECRET
);
if (!ok) return res.sendStatus(400);
const event = JSON.parse(req.body.toString("utf8"));
console.log(event.type, event.id);
res.sendStatus(200);
});サンプル内の ID、キー、アドレスはプレースホルダーです。各サンプルは API の記述とコマンドラインツールに照らして確認されています。
手順ごとの解説と、ソフトウェアがインストール済みの状態で始まるテンプレートです。