Skip to main content

DaemonCommands

Enum DaemonCommands 

Source
pub enum DaemonCommands {
    Run {
        model: Option<String>,
        gpu: bool,
        full_precision: bool,
        port: u16,
        listen: Option<String>,
        allow_host: Vec<String>,
        dir: Option<String>,
        yes: bool,
        no_memory: bool,
        max_steps: usize,
        quiet: bool,
        log_file: Option<String>,
    },
    Install {
        model: Option<String>,
        gpu: bool,
        cpu: bool,
        full_precision: bool,
        port: u16,
        allow_host: Vec<String>,
        dir: Option<String>,
        yes: bool,
        no_memory: bool,
        max_steps: usize,
        no_linger: bool,
    },
    Uninstall {
        purge: bool,
    },
    Start,
    Stop,
    Logs {
        lines: usize,
        follow: bool,
    },
    Open,
    Status,
}

Variants§

§

Run

Run the daemon in the foreground, until Ctrl+C

Fields

§model: Option<String>

Chat model the agent and /v1/chat/completions use. Default: the one last picked in the web UI or by install, else qwen3.5-4b

§gpu: bool

Run the model on the GPU

§full_precision: bool

Load full-precision safetensors instead of the Q4_K_M GGUF

§port: u16

Port to listen on

§listen: Option<String>

Listen on this address instead of loopback only, such as 0.0.0.0. Every request still needs the token

§allow_host: Vec<String>

Also answer to this host name, such as the one tailscale serve gives this computer (mybox.tail1234.ts.net). Can be given more than once

§dir: Option<String>

Folder the agent works in. Default: ~/kjarni

§yes: bool

Run every tool call without asking first

§no_memory: bool

Neither read nor save long-term memory

§max_steps: usize

Model replies per message at most

§quiet: bool

Don’t log each request

§log_file: Option<String>

Send all output to this file, as the startup entry does

§

Install

Start the daemon at every login, and start it now

Without –model, picks a model for this machine from its memory and GPU. Running it again replaces the settings.

Fields

§model: Option<String>

Chat model to use instead of the one picked for this machine

§gpu: bool

Run the model on the GPU

§cpu: bool

Run the model on the CPU, even when a GPU is free

§full_precision: bool

Load full-precision safetensors instead of the Q4_K_M GGUF

§port: u16

Port to listen on

§allow_host: Vec<String>

Also answer to this host name, such as the one tailscale serve gives this computer (mybox.tail1234.ts.net). Can be given more than once

§dir: Option<String>

Folder the agent works in. Default: ~/kjarni

§yes: bool

Run every tool call without asking first

§no_memory: bool

Neither read nor save long-term memory

§max_steps: usize

Model replies per message at most

§no_linger: bool

Linux: stop the daemon when you log out, instead of keeping it running (loginctl enable-linger)

§

Uninstall

Stop starting the daemon at login, and stop it

Fields

§purge: bool

Also delete the daemon’s token and logs, and the agent’s memory and conversations

§

Start

Start the installed daemon

§

Stop

Stop the installed daemon until the next login or start

§

Logs

Show the daemon’s log

Fields

§lines: usize

Lines from the end to show

§follow: bool

Keep showing new lines as they are written

§

Open

Sign this computer’s browser in to the running daemon and open it

§

Status

Show whether the daemon is installed and running, and with what

Trait Implementations§

Source§

impl Debug for DaemonCommands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for DaemonCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl PartialEq for DaemonCommands

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DaemonCommands

Source§

impl Subcommand for DaemonCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more