# Nephis developer quickstart

This guide uses the current gateway routes and the TypeScript Eschaton client. The examples require a provider-issued API key. No automatic signup credits or free trial balance is promised here.

## 1. Configure credentials

Keep the key in an environment variable or secret manager. In Bash:

```bash
export NEPHIS_API_KEY="your-provider-issued-key"
```

In PowerShell:

```powershell
$env:NEPHIS_API_KEY = "your-provider-issued-key"
```

## 2. Check account and current rates

```bash
curl -fsS https://nephis.theeducode.com/v1/auth/me \
  -H "Authorization: Bearer $NEPHIS_API_KEY"
curl -fsS https://nephis.theeducode.com/v1/billing/rate-card
```

The second endpoint is the source of current rates. Check the balance before running metered requests.

## 3. Execute code with the TypeScript SDK

Install the package and use the exported `EschatonClient` API:

```bash
npm install nephis
```

```typescript
import { EschatonClient } from "nephis";

const client = new EschatonClient({
  baseUrl: "https://nephis.theeducode.com",
  apiKey: process.env.NEPHIS_API_KEY,
});

const result = await client.execute({
  sourceCode: "print(1 + 1)",
  languageId: 71, // Confirm the current ID with GET /v1/languages.
  suite: "Apex",
  stdin: "",
  expectedOutput: "2",
});
console.log(result);
```

Each execution is metered. For the raw request schema and idempotency guidance, see the [API reference](API_REFERENCE.md#eschaton-code-execution).

## 4. Python SDK

Install from the SDK directory or the package registry only after checking the published package version and its README. The repository currently exports `EschatonClient` from the Python `eschaton` module and `NephisClient` from `nephis`; the constructor uses `base_url` and `api_key` (not `endpoint` and `api_token`).

```python
from eschaton import EschatonClient

client = EschatonClient(
    base_url="https://nephis.theeducode.com",
    api_key="YOUR_PROVIDER_ISSUED_KEY",
)
result = client.execute(
    source_code="print(1 + 1)",
    language_id=71,  # Confirm with GET /v1/languages.
    suite="Apex",
    expected_output="2",
)
print(result)
```

## 5. Mnemon and Thanaton

Use the current product-specific SDKs and route contracts. Thanaton project creation is a billed project operation; `/v1/sandboxes` is currently an alias for project list/create, not the retired standalone VM contract. Mnemon time-travel branch creation and schema diff return `501 Not Implemented` in the current local control plane. See the [API reference](API_REFERENCE.md) before trying lifecycle or database mutations.

## 6. MCP

Set `NEPHIS_API_KEY` and `NEPHIS_BASE_URL`, then launch `npx -y nephis-mcp-server`. For supported tools, inspect the server's live MCP `tools/list` response; this guide does not guarantee a fixed tool count. See the [MCP setup guide](MCP_AND_AGENT_INTEGRATION_GUIDE.md).
