> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# تثبيت Agent SDK لـ Rust

> ثبّت phaseo-agent وأعدّ عميله لبوابة Phaseo.

## المتطلبات

* Rust 1.86 أو أحدث
* مفتاح API لبوابة Phaseo

## التثبيت

```toml theme={null}
[dependencies]
phaseo = "0.1"
phaseo-agent = "0.1"
serde_json = "1"
```

أو شغّل:

```bash theme={null}
cargo add phaseo@0.1 phaseo-agent@0.1 serde_json
```

## إعداد المصادقة

تقرأ `create_gateway_agent_client(...)` و`GatewayAgentClient::from_env(...)` المتغير `PHASEO_API_KEY`:

```bash theme={null}
export PHASEO_API_KEY="phaseo_v1_sk_..."
```

يقبل عميل `phaseo` الأساسي أيضًا المتغير الاختياري `PHASEO_BASE_URL`.

## التحقق من التثبيت

```rust theme={null}
use phaseo_agent::{create_agent, AgentDefinition};

fn main() {
    let _agent = create_agent(AgentDefinition::new(
        "verification-agent",
        "openai/gpt-6-astra",
    ));
    println!("Phaseo Rust Agent SDK installed");
}
```

## الخطوة التالية

* [إنشاء أول وكيل Rust](./agent-sdk.mdx)
* [الأدوات والموافقات](./agent-sdk-tools.mdx)
* [مرجع Agent API](./agent-sdk-api-reference.mdx)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.